Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:26 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04909 seconds
  • Memory Usage 2,804KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_html
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (14)post_thanks_box
  • (4)post_thanks_box_bit
  • (14)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (14)post_thanks_postbit_info
  • (14)postbit
  • (14)postbit_onlinestatus
  • (14)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadedmode.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete