//die('hello'); /* * IP constants */ define('LOCAL_IP', '127.0.0.1'); //echo $_SERVER['REMOTE_ADDR']; // ::1 , 127.0.0.1 define('REMOTE_IP', '85.144.114.132'); /** * Error reporting */ if($_SERVER['REMOTE_ADDR'] == REMOTE_IP || $_SERVER['REMOTE_ADDR'] == LOCAL_IP){ ini_set('display_errors', 'on'); error_reporting(E_ALL & ~E_NOTICE); //error_reporting(E_ALL | E_STRICT); //ini_set('display_errors', 'off'); //error_reporting(0); //echo 'hello'; }else{ ini_set('display_errors', 'off'); error_reporting(0); } include_once ('system/config.php'); include ('system/connectdb.php'); $link = connect (); if(isset($_GET['page'])) { $page = $_GET['page']; } else { $page = 'frontpage'; header('location: http://www.annekeadeboer.com/index.php?page=current_projects&cat_ID=all'); } $current = "pages/$page.php"; $thisPage = $page; $query = 'SELECT * FROM members'; $result = mysql_query($query) or die('Query failed: ' . mysql_error()); //putting the results in an array $line = mysql_fetch_array($result, MYSQL_ASSOC); //if there is for some reason NO line to do something with it will echo an error if (!$line) { echo "error"; //exit -- Output a message and terminate the current script [void exit ( int status )] exit(1); } //if there is data stored in the $line it is handeled per row and sololy $description = $line["description"]; $keywords = $line["keywords"]; include("scripts/striptags.php"); include("scripts/count_spaces.php"); include("scripts/wrap.php"); ?>
| /*if ($page== 'intro') {include("menu_a.php");} else {*/ if($page!=='frontpage'){ include("menu.php"); } // } ?> |
|
echo ' ';
include("pages/$page.php");
echo ' ';
?>
|