View Single Post
  #17  
Old 11-27-2002, 09:29 AM
rylin rylin is offline
 
Join Date: Nov 2001
Location: Stockholm, Sweden
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Right,
after
PHP Code:
if ($bbuserinfo[userid]==and $checkpwd) { 
it should look like

PHP Code:
//  cpheader("<title>Forums admin</title>");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
        <meta content="text/html; charset=windows-1252" http-equiv="Content-Type" />
        <meta http-equiv="MSThemeCompatible" content="yes" />
        <link rel="stylesheet" href="cp2.css" />
        <title>vBulletin Moderators' Control Panel</title>      <script language="Javascript">

        // attempt to rename the frameset title
        if (typeof(parent.document) != 'undefined' && typeof(parent.document) != 'unknown' && typeof(parent.document.title) == 'str$
        {
                if (document.title != '')
                {
                        parent.document.title = document.title;
                }
                else
                {
                        parent.document.title = "vBulletin Community Forum Control Panel";
                }
        }
        </script>
</head>
<body onload="document.forms.submitrow.loginusername.focus()">
        <p>&nbsp;</p><p>&nbsp;</p>
                
<br><br><br>
<form method="post" id="submitrow">
<input type="hidden" name="s" value="<?php echo $session[sessionhash]; ?>">
<input type="hidden" name="action" value="login">
<input type="hidden" name="redirect" value="<?php
                        
if ($HTTP_SERVER_VARS['REQUEST_URI']!="") {
  
$url $HTTP_SERVER_VARS['REQUEST_URI'];
} else {
  if (
$PATH_INFO) {
    
$url $PATH_INFO;
  } else {
    
$url $PHP_SELF;
  }

  if (
$QUERY_STRING) {
    
$url .= "?$QUERY_STRING";
  }
}                       

  
$url=ereg_replace("sessionhash=[a-z0-9]{32}&","",$url);
  
$url=ereg_replace("\\?sessionhash=[a-z0-9]{32}","",$url);
  
$url=ereg_replace("s=[a-z0-9]{32}&","",$url);
  
$url=ereg_replace("\\?s=[a-z0-9]{32}","",$url);
echo 
htmlspecialchars($url);
?>">
        <table cellpadding="1" cellspacing="0" border="0" width="450" align="center" class="tborder"><tr><td>
        <table cellpadding="4" cellspacing="0" border="0" width="100%">
        <tr>
        <td class="tcat" align="center"><b>Please Log In:</b></td>
</tr>
        </table>        
        <!-- logo and version -->
        <table cellpadding="4" cellspacing="0" border="0" width="100%" class="navbody">
        <tr valign="bottom">
                <td><img src="cp_newlogo.gif" width="160" height="66" alt="cplogo" title="vBulletin &copy;2000-2002 Jelsoft Enterpr$
                <td><b><a href="../index.php">MGOForum</a></b><br />vBulletin Administrators' Control Panel<br />&nbsp;</td>
        </tr>
        </table>
        <!-- /logo and version -->
        <table cellpadding="4" cellspacing="0" border="0" width="100%" class="submitrow">
        <tr>
                <td width="100" align="right" class="button"><u>U</u>sername</td>
                <td><input type="text" name="loginusername" value="" size="40" accesskey="u" /></td>
        </tr>           
        <tr>
                <td align="right" class="button"><u>P</u>assword</td>
                <td><input type="password" name="loginpassword" size="40" accesskey="p" /></td>
        </tr>
        <tr>
                <td colspan="2" align="center">
                        <input type="submit" value="  Log In  " accesskey="s" />
                </td>
        </tr>
        </table>
        </td></tr></table>
</form>
<p align="center"><font size="1">vBulletin v<?php echo $templateversion ?> Administrator Control Panel</font></p>
<?php
  cpfooter
();
  exit;
}

?>
(Note, this was to the actual *end* of the file, in other words, the last } bracket is the end of the
PHP Code:
if ($bbuserinfo[userid]==and $checkpwd) { 
check)
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01148 seconds
  • Memory Usage 1,808KB
  • 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
  • (3)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