View Single Post
  #8  
Old 09-16-2014, 12:58 PM
Disco_Dave's Avatar
Disco_Dave Disco_Dave is offline
 
Join Date: May 2011
Location: Belfast
Posts: 586
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

May be I'm reading it wrong....But is that line not already the same as you provided?

PHP Code:
$navbits construct_navbits(array('' => 'Verify Email')); 
$navbar render_navbar_template($navbits); 
            
$vbulletin->input->clean_array_gpc('r', array( 
        
'email' => TYPE_STR
        
'emailconfirm' => TYPE_STR
        
'emailconfirmationcode' => TYPE_STR
        
'codehasbeenset' => TYPE_BOOL
        
'so' => TYPE_BOOL
        
'emailcode' => TYPE_STR
        
'ihaveit' => TYPE_BOOL
        
'reorder' => TYPE_BOOL
    
'month' => TYPE_UINT
    
'year'  => TYPE_UINT
    
'day'   => TYPE_UINT
        
COOKIE_PREFIX 'notcoppa' =>  TYPE_STR 

    
)); 

if(
$vbulletin->options['usecoppa']) 

$current['year'] = date('Y'); 
$current['month'] = date('m'); 
$current['day'] = date('d'); 



if(!isset(
$_COOKIE[COOKIE_PREFIX 'notcoppa']) AND $vbulletin->GPC['month'] != AND $vbulletin->GPC['day'] != AND $vbulletin->GPC['year'] != AND (mktime(000$vbulletin->GPC['month'], $vbulletin->GPC['day'], $vbulletin->GPC['year']) <= mktime(000$current['month'], $current['day'], $current['year'] - 13))) 

vbsetcookie('notcoppa'$vbulletin->GPC['month'] . '-' $vbulletin->GPC['day'] . '-' $vbulletin->GPC['year'], 1); 


$coppaage = ($_COOKIE[COOKIE_PREFIX 'coppaage']) ? $_COOKIE[COOKIE_PREFIX 'coppaage'] : $_COOKIE[COOKIE_PREFIX 'notcoppa'] ; 

if(
$coppaage

$dob explode('-'$coppaage); 
$month = ( $dob[0] != 0) ? $dob[0] : -1
$day = ( $dob[1] != ) ? $dob[1] : -1
$year = ( $dob[2] != ) ? $dob[2] : -1


$so = (isset($vbulletin->GPC['so'])) ? $vbulletin->GPC['so'] : 
$email strtolower($vbulletin->GPC['email']); 
$emailcode$vbulletin->GPC['emailcode'] ; 
$emailconfirm$vbulletin->GPC['emailconfirm'] ; 
$emailconfirmationcode $vbulletin->GPC['emailconfirmationcode']; 
$codehasbeenset $vbulletin->GPC['codehasbeenset']; 
$reorder $vbulletin->GPC['reorder']; 
$ihaveit $vbulletin->GPC['ihaveit']; 

$show['reorder'] = false
$show['emailerrors'] = false

if(isset(
$email) AND $email != "" AND !empty($email)) 


    if(!
simpleping($email)) 
    { 
        
$show['emailerrors'] = true
        
$errorlist .= "<li>".$vbphrase['pingerror']."</li>"
    } 

    
$emailalreadyused $db->query_read("SELECT * FROM " TABLE_PREFIX "userregcode WHERE userregemail = '$email'"); 

    if (
$db->num_rows($emailalreadyused) ) 
    { 
        
$show['emailerrors'] = true
        
$show['reorder'] = true
        
$errorlist .= "<li>".$vbphrase['emailalreadyusednotconfirmed']."</li>"
        
$userfetched $db->fetch_row($emailalreadyused); 
        if(
$userfetched[3] >= $vbulletin->options['email_verfication']) 
        { 
             eval(
standard_error(fetch_error('thiswasusedmorethanenough'))); 
        } 
    } 

    
$emailalreadyregisterd $db->query_read("SELECT * FROM " TABLE_PREFIX "user WHERE email = '$email'"); 

    if (
$db->num_rows($emailalreadyregisterd)) 
    { 
        
$show['emailerrors'] = true
        
$errorlist .= "<li>".$vbphrase['emailalreadyregisterd']."</li>"
    } 


if( 
$so != AND ( ($show['emailerrors'] AND $codehasbeenset != 0) OR ( !isset($email) OR $email == "" OR empty($email) ) ) AND !$reorder AND !$ihaveit )

    
$codehasbeenset 0;  
    
$templater vB_Template::create('reg_ver_start'); 
    
$templater->register('header'$header); 
    
$templater->register('navbar'$navbar);  
    
$templater->register('email'$email);  
    
$templater->register('emailconfirm'$emailconfirm);  
    
$templater->register('headinclude'$headinclude);  
    
$templater->register('footer'$footer);  
    
$templater->register('errorlist'$errorlist); 
    
$templater->register('reorder'$reorder); 
    
$templater->register('ihaveit'$ihaveit); 
    
$templater->register('codehasbeenset '$codehasbeenset ); 
    
$templater->register('jqueryurl'$jqueryurl); 
    
$reg_ver_start $templater->render();   
    
vB_Template::preRegister('register', array('reg_ver_start' => $reg_ver_start)); 
    
$vbulletin->templatecache['register'] = '$reg_ver_start'
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01284 seconds
  • Memory Usage 1,872KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete