Location: PHPKode > scripts > UNKNOW > videogallery/admin/settings.php
<?PHP
//........................

$table = "$prefix" . "SETTINGS";
$return = "settings.php";

//........................

$SQL = "SELECT * from $table WHERE ID = '1'"; $result = @mySQL_query( $SQL ); $row = @mySQL_fetch_array( $result );

if (empty($row[ID]))
        $qt = insert;
if (!empty($row[ID]))
        $qt = update;

if ($_GET[page] == 'query')
        $save = 'Saved';
else
        $save = 'Save';
//........................
?> 

<h2><?PHP /* (LANGUAGE) */ $t = "Settings"; $f = "header"; include "langinc.php"; /* (LANGUAGE) */ ?></h2>

<form name="form" method="post" action="index.php?page=query&save=saved">

<input type="hidden" name="controller" value="<?php echo $table; ?>~<?php echo $qt; ?>~<?php echo $return; ?>~1">

<h3><?PHP /* (LANGUAGE) */ $t = "Video Gallery Title"; $f = "title"; include "langinc.php"; /* (LANGUAGE) */ ?></h3>

<input type="text" name="TITLE" class="fieldbox" style="width: 100%;" value="<?php echo $row[TITLE]; ?>">

<h3 style="margin-top:15px;"><?PHP /* (LANGUAGE) */ $t = "Administrator Email Address"; $f = "adminemail"; include "langinc.php"; /* (LANGUAGE) */ ?></h3>

<input type="text" name="ADMINEMAIL" class="fieldbox" style="width: 100%;" value="<?php echo $row[ADMINEMAIL]; ?>">

<div align="center">

<?php if ($_GET[save] != saved) { ?>

<input class="sparklybutton" type="submit" name="Submit" value="<?PHP /* (LANGUAGE) */ $t = "Save"; $f = "save"; include "langinc.php"; /* (LANGUAGE) */ ?>" style="margin-top: 15px;">

<?PHP } ?>

<?php if ($_GET[save] == saved) { ?>

<input class="sparklybutton" type="submit" name="Submit" value="<?PHP /* (LANGUAGE) */ $t = "Saved, Save Again?"; $f = "saveagain"; include "langinc.php"; /* (LANGUAGE) */ ?>" style="margin-top: 15px;">

<?PHP } ?>

</div>

</form>
Return current item: UNKNOW