[15-Mar-2011 09:21:44] PHP Warning: include(includes/product\'.inc) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/site/public_html/index.php on line 110
[15-Mar-2011 09:21:44] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'includes/product\'.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/site/public_html/index.php on line 110
[15-Mar-2011 09:21:45] PHP Warning: include(includes/product And 1=0--.inc) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/site/public_html/index.php on line 110
[15-Mar-2011 09:21:45] PHP Warning: include(includes/product And 1=0--.inc) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/site/public_html/index.php on line 110
[15-Mar-2011 09:21:45] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'includes/product And 1=0--.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/site/public_html/index.php on line 110
[15-Mar-2011 09:21:46] PHP Warning: include(includes/product And 1=1--.inc) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/site/public_html/index.php on line 110[/text]
Code: Select all
<?php session_start();
if(isset($_REQUEST['itemtype']))
{
$itemtype = $_REQUEST['itemtype'];
$_SESSION['itemtype']=$itemtype;
} else { $itemtype=$_SESSION['itemtype'];
}
if ($itemtype == NULL) { $itemtype = "BB Guns";}
if(isset($_REQUEST['sort']))
{
$sort = $_REQUEST['sort'];
$_SESSION['sort']=$sort;
} else { $sort=$_SESSION['sort'];
}
if($sort == NULL) { $sort=title; }
?>
<script>
function precheck(str)
{
if (str=="")
{
document.getElementById("txtHint").innerHTML="";
return;
}
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("srcHint").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","presearch.php?q="+str,true);
xmlhttp.send();
}
</script>
<script>
function formCheck(formobj){
// Enter name of mandatory fields
var fieldRequired = Array("search");
// Enter field description to appear in the dialog box
var fieldDescription = Array("Search box not completed");
// dialog message
var alertMsg = "OOPS!\n";
var l_Msg = alertMsg.length;
for (var i = 0; i < fieldRequired.length; i++){
var obj = formobj.elements[fieldRequired[i]];
if (obj){
switch(obj.type){
case "select-one":
if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){
alertMsg += " - " + fieldDescription[i] + "\n";
}
break;
case "select-multiple":
if (obj.selectedIndex == -1){
alertMsg += " - " + fieldDescription[i] + "\n";
}
break;
case "text":
case "textarea":
if (obj.value == "" || obj.value == null){
alertMsg += " - " + fieldDescription[i] + "\n";
}
break;
default:
}
if (obj.type == undefined){
var blnchecked = false;
for (var j = 0; j < obj.length; j++){
if (obj[j].checked){
blnchecked = true;
}
}
if (!blnchecked){
alertMsg += " - " + fieldDescription[i] + "\n";
}
}
}
}
if (alertMsg.length == l_Msg){
return true;
}else{
alert(alertMsg);
return false;
}
}
// -->
</script>
<?php
$page= isset($_GET['page']) ? $_GET['page'] : null;
if (isset($_GET['page']))
{
function getPage()
{
$thispage="includes/".$_GET['page'].".inc";
include $thispage;
THIS IS LINE 110 >>> }
}