

".date('j. n. Y',$row['date']).", ".$row['title'].": ".$row['description']." ".$row['linkname'].".
"; } //endfor ?>error_reporting(E_ALL ^ E_DEPRECATED); mysql_connect("127.0.0.1", "unitedarts.cz", "9fEx436") or die ("Database error! - Unable connect to Database"); mysql_select_db("unitedartscz2") or die ("Database error! - Unable to select Database"); $URLRE = $_SERVER['SCRIPT_NAME'].strstr($_SERVER['REQUEST_URI'], '?'); if(isset($_GET["loc"])){ switch ($_GET["loc"]){ case 'projects': case 'gymnastics': case 'other': case 'photo': case 'video': case 'links': case 'contact': $loc=$_GET["loc"]; break; default: $loc='index'; } // end switch } // endif isset loc else{ $loc='index'; } //////////////// Funkce //////////////////////////////// include "function.php"; //////////////// Funkce //////////////////////////////// web_counter_click(); if( isset($_GET["gal"]) && (trim($_GET["gal"])<>'' && isint($_GET["gal"]))){ $gall_bool=true; $gall=$_GET["gal"]; } //endif gallery else{ $gall_bool=false; } //////////////// Vkaldani novych komentaru //////////////////////////////// if(isset($_POST["msg"]) && (trim($_POST["msg"])<>'')){ $crstr=strtoupper(substr(md5("fdjk".$_POST["tt"]),4,3)); if(isset($_POST["stamp"]) && strtoupper($_POST["stamp"])==$crstr){ if($_POST["name"] == ''){$new_name = 'NoName';}else{$new_name = $_POST["name"];} $new_name=htmlspecialchars(mysql_escape_string($new_name)); $new_mail=htmlspecialchars(mysql_escape_string($_POST["email"])); $new_web=$_POST["web"]; if(strpos($new_web, "http://") === false){$new_web="http://".$new_web; } $new_web=mysql_escape_string($new_web); $new_msg=htmlspecialchars(mysql_escape_string($_POST["msg"])); $new_query="INSERT INTO `unitedartscz2`.`Comments` ( `id` , `date` , `name` , `mail` , `web` , `message` , `urlre` , `ip` ) VALUES ( NULL , '".time()."', '".$new_name."', '".$new_mail."', '".$new_web."', '".$new_msg."', '".$URLRE."', '".$_SERVER['REMOTE_ADDR']."' );"; mysql_query($new_query) or die("Unable to insert: ".$new_query); }} //end if isset //////////////// Vkaldani novych komentaru //////////////////////////////// ?>
".date('j. n. Y',$row['date']).", ".$row['title'].": ".$row['description']." ".$row['linkname'].".
"; } //endfor ?>