How can I change the following background login code to login-free? how can I change the background login code below to login-free, that is, to directly log on to the file without entering the administrator account password PHPcode & lt ;? Phpdefine ('sub _ dir', '/service'); session_start (how can I change the following background code to login-free?
How can I change the following background login code to login-free? log on directly when this file is opened, without entering the administrator account password?
PHP code
Is_admin = true; $ fanwe-> is_session = false; $ fanwe-> is_user = false; $ fanwe-> is_cron = false; $ fanwe-> cache_list = array (); $ fanwe-> initialize (); include_once import ('function/cache'); updateCache (); clearDir (FANWE_ROOT. '. /public/tpl '); clearDir (FANWE_ROOT. '. /admin/runtime'); clearDir (FANWE_ROOT. '. /update/runtime'); // include FANWE_ROOT. '. /ThinkPHP/Vendor/bbs. php '; // BBSAction: getInstance ()-> upda TeSetting (); $ result = array ("status" => 1, "info" => 'cleared successfully', "data" => ""); include import ('class/json'); $ json = new json (); die ($ JSON-> encode ($ result ));} // 2011-01-30 updateelseif ($ action = 'updategoods ') {$ fanwe = & FanweService: instance (); $ fanwe-> is_admin = true; $ fanwe-> is_session = false; $ fanwe-> is_user = false; $ fanwe-> is_cron = false; $ fanwe-> cache_list = array ('Goods '); $ fanwe-> initialize (); s Et_time_limit (0); global $ _ FANWE; $ begin = isset ($ _ FANWE ['request'] ['begin'])? Intval ($ _ FANWE ['request'] ['begin']): 0; $ begin = max ($ begin, 0); if ($ begin = 0) {DB: query ("delete from ". DB: table ('cron '). "WHERE type = 'Goods '"); DB: query ("truncate table ". DB: table ('goods _ right'); DB: query ('replace '. DB: table ('goods _ right '). '(id, site_id, site_name, name, city, cate_id, url, click_count, best_count, collect_count, shop_price, market_price, begin_time, end_time, brief, sort, Hangzhou, big_img, score, is_best, bought, collect_buy, ef_time, post_count, r_sort, cr_sort, add_time) SELECT g. id, g. site_id, site_name, name, g. city, g. cate_id, url, click_count, best_count, collect_count, shop_price, market_price, begin_time, g. end_time, brief, g. sort, small_img, big_img, score, is_best, bought, collect_buy, ef_time, post_count, g. r_sort, g. cr_sort, add_time FROM '. DB: table ('goods _ key '). 'As gk INNER join '. DB: table ('Goods '). 'As g ON g. id = gk. id WHERE g. status = 1 AND gk. end_time> '. TIME_UTC); DB: query ("truncate table ". DB: table ('goods _ now_key '); DB: query ('replace '. DB: table ('goods _ now_key '). 'select id, site_id, city, cate_id, sort, r_sort, cr_sort, 0, 0, 0, end_time FROM '. DB: table ('goods _ right'); DB: query ('delete from '. DB: table ('goods _ now_match '). 'Where id not in (SELECT id FROM '. DB: table ('goods _ now_key '). '); DB: query ('Insert '. DB: table ('goods _ now_match '). 'select gm. id, gm. content FROM '. DB: table ('goods _ key '). 'As gk INNER join '. DB: table ('goods _ match '). 'As gm ON gm. id = gk. id left join '. DB: table ('goods _ now_match '). 'As gnm ON gnm. id = gk. id WHERE gk. end_time> '. TIME_UTC. 'AND gnm. id IS Null'); $ begin = 0 ;}$ sort_sites = array (); $ res = DB: query ('select site_id from '. DB: table ('goods _ key '). 'Where end_time> '. getTodayTime (). 'group BY site_id'); while ($ sid = DB: fetch ($ res) {$ sort_sites [] = $ sid ['site _ id'];} $ data_num = count ($ sort_sites); echo"