| [ PHPXref.com ] | [ Generated: Sun Jul 20 16:26:46 2008 ] | [ Agatha 0.7.3 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <? 2 3 $LANG["error_no_config"] = "No Config File Found<br><br> 4 Copy config.php.dist to config.php and edit the path info... Also.. be sure to read the README file"; 5 6 7 if(file_exists("config.php")) include("config.php"); 8 else { 9 error($LANG["error_no_config"]); 10 exit; 11 } 12 13 /* Check Input For Bad Stuff ******************************************/ 14 15 #require_once("paranoia.inc.php"); 16 17 #if(isset($_REQUEST)&&!empty($_REQUEST)){ 18 # $par=new paranoia($_REQUEST); 19 # if(!empty($par->wrongParams)) { 20 # error("There Were Invalid Characters In Your Request"); 21 # } 22 #} 23 /* End Check Input For Bad Stuff **************************************/ 24 25 26 $BASE_URL = $_SERVER["SERVER_NAME"].$_SERVER["SCRIPT_NAME"]; 27 $URL = $_SERVER["SERVER_NAME"] . substr($_SERVER["SCRIPT_NAME"], 0, strrpos($_SERVER["SCRIPT_NAME"], '/'))."/"; 28 29 if($CONFIG["option_local_play"] == TRUE) { 30 include "mp3daemon.class.php"; 31 if ($mp3 = new mp3daemon(LOCAL_PLAY_SOCKET)) { 32 if (strpos($_SERVER["HTTP_USER_AGENT"], "MSIE")) $height = 60; 33 else $height = 55; 34 #else $height = 42; 35 36 echo "<head>\n 37 <title>Agatha - Be Heard!</title>\n 38 <LINK rel=\"SHORTCUT ICON\" href=\"http://$URL/favicon.ico\"> 39 <frameset rows=$height,* frameborder=0 border=0>\n 40 <frame marginwidth=0 scrolling=no marginheight=0 name=localplay src=mp3daemon.php>\n 41 <frame marginwidth=0 marginheight=0 name=main src=agatha.php>\n 42 </frameset\n\n 43 </head>\n\n"; 44 } else { 45 46 include ("agatha.php"); 47 } 48 49 } else include ("agatha.php"); 50 51 52 53 function error($text) { 54 echo "<html>\n<head><title>Agatha - Error</title></head>\n"; 55 echo "<body>\n\n"; 56 echo "<link href=\"agatha.css\" rel=\"stylesheet\" type=\"text/css\" >\n"; 57 echo "<DIV class=error>Error: $text<br>\n"; 58 error_log("ERROR: $text", 0); 59 echo "</body></html>"; 60 exit; 61 62 } 63 64 65 ?> 66
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |