hey how can i remove so the main page on this script isn?t info.php?do=main just info.php?
hope you understand what i mean.
PHP Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('GET_EDIT_TEMPLATES', true);
define('THIS_SCRIPT', 'info');
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();
// get special data templates from the datastore
$specialtemplates = array();
// pre-cache templates used by all actions
$globaltemplates = array(
'navbar',
);
// pre-cache templates used by specific actions
$actiontemplates = array();
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// ################### INITIALIZE ######################
$ver = '1.0'; // version
// ##################### MAIN SCRIPT #########################
if(empty($_REQUEST['do']) OR ($_REQUEST['do'] == ''))
{
$_REQUEST['do'] = 'main';
}
// main section
if($_REQUEST['do'] == 'main')
{
// build navbar
$navbits = array();
$navbits[''] = 'vBInfo';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('vBInfo') . '");');
}
// view Rules
if($_REQUEST['do'] == 'rules')
{
// build navbar
$navbits = array();
$navbits['?' . $vbulletin->session->vars['sessionurl'] . ""] = $vbphrase['vbinfo'];
$navbits[''] = 'User Rules';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('vBInfo_Rules') . '");');
}
?>
i have some other code with paginator and for that to work correct i must write do=&page=2 if i changes the above to this
PHP Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('GET_EDIT_TEMPLATES', true);
define('THIS_SCRIPT', 'info');
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();
// get special data templates from the datastore
$specialtemplates = array();
// pre-cache templates used by all actions
$globaltemplates = array(
'navbar',
);
// pre-cache templates used by specific actions
$actiontemplates = array();
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// ################### INITIALIZE ######################
$ver = '1.0'; // version
// ##################### MAIN SCRIPT #########################
// main section
if(empty($_REQUEST['do'])
{
// build navbar
$navbits = array();
$navbits[''] = 'vBInfo';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('vBInfo') . '");');
}
// view Rules
if($_REQUEST['do'] == 'rules')
{
// build navbar
$navbits = array();
$navbits['?' . $vbulletin->session->vars['sessionurl'] . ""] = $vbphrase['vbinfo'];
$navbits[''] = 'User Rules';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('vBInfo_Rules') . '");');
}
?>