\n". "". "".SYS_LOGIN_FAIL."". "\n". ""; } include("body.php"); draw_blocks("R"); } /* plugins ********************************************************************/ function plugins() { $p = get_var('p'); if (file_exists('plugins/'.$p.'/disabled') && !haskey('admin')) { draw_header(1,1,' Module Disabled'); page_header(1); draw_blocks('L'); echo 'This module is temporarily disabled. Please check back soon!'; draw_blocks('R'); } else { include('plugins/'.$p.'/plugin.php'); } } /* auth ***********************************************************************/ function auth() { global $db_p,$uname,$passwd,$path_web,$user; $res=mysql_query("SELECT * FROM ".$db_p."_users WHERE uname='$uname' ". "AND passwd=MD5('$passwd')"); $num = mysql_num_rows($res); if ($num == 0) { header("Location: ".$path_web."index.php?login=fail"); } else { $user = mysql_fetch_row($res); if (haskey("view_admin")) { header("Location: ".$path_web."index.php?func=plugins&p=admin"); } else { header("Location: ".$path_web."index.php"); } } } /* logout *********************************************************************/ function logout() { global $user,$path_web; session_unregister("user"); header("Location: ".$path_web."index.php"); } /* change_message *************************************************************/ function change_message() { global $db_p,$html_tips,$id; draw_header(1,1," Change Message"); page_header(1); draw_blocks("L"); $a=mysql_query("SELECT loc,message,key_req FROM ".$db_p."_messages WHERE id=$id"); list($loc,$message,$key_req)=mysql_fetch_row($a); if (!haskey("admin") && !haskey($key_req)) { die(SYS_NO_KEY); } list($p,$go)=split("_",$loc); ?>

Change Message

Change Title