Home > database >  The novice who help, genuflect is begged dream weaving website backstage to open it
The novice who help, genuflect is begged dream weaving website backstage to open it

Time:10-13

Before because you want to remove the weave the dream behind the web site home page index. The HTML suffix, according to a tutorial on the background of the index, the PHP code rewritten, then found the background unable to login, all front desk page,
The background to the login page can be normal open, after the success of the login show 404 not to jump to the background page,
http://ebi-china.com/office/login.php? Gotopage=% 2 foffice % 2 findex. PHP



The FTP even not contacted website service, server upgrade, then the website version is too old, no connection way, because it is a long website so source also don't know where to go,
Consult bosses and there is no other way to connect or server in the background?
Modify the code before:
& lt; ? PHP
/* *
* management background page
*
* @ $Id version: index. PHP 1 11:06 tianya on July 13, 2010 Z $
* @ package DedeCMS. Administrator
* @ copyright copyright (c) 2007-2010, DesDev Inc.,
* @ license http://help.dedecms.com/usersguide/license.html
* @ link http://www.dedecms.com
*/
Require_once (dirname (__FILE__). "/config. PHP");
Require_once (DEDEINC. '/dedetag. Class. PHP);
$defaultIcoFile=DEDEDATA. '/admin/quickmenu. TXT';
$myIcoFile=DEDEDATA. '/admin/quickmenu -'. $cuserLogin - & gt; GetUserID (). '. TXT ';

if(! The file_exists ($myIcoFile)) $myIcoFile=$defaultIcoFile;

Require (DEDEADMIN. '/inc/inc_menu_map. PHP);
Include (DEDEADMIN. '/templets/index2. HTM);
exit();

The modified code:
& lt; ? PHP
if(! File_exists (dirname (__FILE__). '/data/common. Inc., a PHP))
{
The header (' Location: install/index. PHP ');
exit();
}
Require_once (dirname (__FILE__). "/include/common. Inc., a PHP");
Require_once DEDEINC. "/arc. Partview. Class. PHP";
$GLOBALS [' _arclistEnv]='index';
$row=$DSQL - & gt; GetOne (" Select * From ` dede_homepageset ` ");
$row [' templet ']=MfTemplet ($row [' templet ']);
$pv=new PartView ();
$pv - & gt; SetTemplet ($cfg_basedir. $cfg_templets_dir. "/". $row [' templet ']);
$pv - & gt; The Display ();
?>

CodePudding user response:

Or is there to help with holes crack in, the old system should have a lot of loopholes, paid for,
  • Related