//die('testing'); /*******************************************************/ /* Lucas Cowgar fierojoe@fierojoe.com */ /*******************************************************/ //die('FieroJoe.com is currently down for maintenance. Please check back soon.'); if (!isset($mainfile)) { include("mainfile.php"); } //if (!isset($func)) { $func = "initial_screen"; } $func = get_var('func', 'initial_screen'); $p = get_var('p'); /* initial_screen *************************************************************/ function initial_screen() { global $theme,$login; draw_header(1,0," Home Page"); page_header(1); draw_blocks("L"); if ($login == "fail") { echo "
Change Message
echo $html_tips; draw_blocks("R"); } /* save_message ***************************************************************/ function save_message() { global $db_p,$path_web,$id,$mess,$p,$go; $a=mysql_query("SELECT message,key_req FROM ".$db_p."_messages WHERE id=$id"); list($message,$key_req)=mysql_fetch_row($a); if (!haskey("admin") && !haskey($key_req)) { die(SYS_NO_KEY); } mysql_query("UPDATE ".$db_p."_messages SET message='$mess' WHERE id='$id' LIMIT 1"); header("Location: ".$path_web."index.php?func=plugins&p=$p&go=$go"); } /* change_title *************************************************************/ function change_title() { global $db_p,$html_tips,$id; draw_header(1,1," Change Title"); page_header(1); draw_blocks("L"); $a=mysql_query("SELECT * FROM ".$db_p."_titles WHERE id=$id"); list($id,$loc,$title,$key_req)=mysql_fetch_row($a); if (!haskey("admin") && !haskey($key_req)) { die(SYS_NO_KEY); } list($p,$go)=split("_",$loc); ?>Change Title
draw_blocks("R"); } /* save_title ***************************************************************/ function save_title() { global $db_p,$path_web,$id,$mess,$p,$go; $a=mysql_query("SELECT title,key_req FROM ".$db_p."_titles WHERE id=$id"); list($title,$key_req)=mysql_fetch_row($a); if (!haskey("admin") && !haskey($key_req)) { die(SYS_NO_KEY); } mysql_query("UPDATE ".$db_p."_titles SET title='$mess' WHERE id='$id' LIMIT 1"); if (($p == "main") && ($go == "menu")) { header("Location: ".$path_web."index.php"); } else { header("Location: ".$path_web."index.php?func=plugins&p=$p&go=$go"); } } /*********** Go Somewhere *************/ if ($func == "initial_screen") { initial_screen(); } else if ($func == "plugins") { plugins(); } else if ($func == "auth") { auth(); } else if ($func == "logout") { logout(); } else if ($func == "change_message") { change_message(); } else if ($func == "save_message") { save_message(); } else if ($func == "change_title") { change_title(); } else if ($func == "save_title") { save_title(); } draw_footer(); ?>