Location: PHPKode > projects > phpBlogger > admin/bookmarklet.php
<?php
###############################
# bookmarklet.php version 1.1.#
###############################
include ('header.php');
?>
<div id="headermenu">Bookmarklet</div>
Allows users to bookmark favorite websites.<br /><br />
<?php if(isset($_POST['submit'])) {
	$bookmarklet = $_POST['bookmarklet'];
	if(get_magic_quotes_gpc()) {
		$bookmarklet = stripslashes($bookmarklet);
	}

$sql = 'UPDATE abcoption SET valueopt = '.$conn->qstr($bookmarklet).' WHERE optionid = '.$conn->qstr("23").'';
	if($conn->Execute($sql) === false) {
		print '<br /><div id="error">error: '.$conn->ErrorMsg().'</div><br />';
	}
$conn->Close();
	echo "<div id ='information'>&nbsp;Successfully. ";
    ?>
<a href="bookmarklet.php">Back to Bookmarklet</a></div>
<?php } else { ?>
<form method="post" action="bookmarklet.php">
Module Off/On<br>
<?php if($editortrue == 1) { ?>
<select style="background:#EEFFE3;" id="incc" name="bookmarklet">
<option value='1'>-- On</option>
<option style="background:#ffffff;" value='1'>---- On</option>
<option style="background:#ffffff;" value='2'>------ Off</option>
</select>
<?php } ?>
<?php if($editortrue == 2) { ?>
<select style="background:#FFF6C1;" id="incc" name="bookmarklet">
<option value='2'>-- Off</option>
<option style="background:#ffffff;" value='1'>---- On</option>
<option style="background:#ffffff;" value='2'>------ Off</option>
</select>
<?php } ?>
<br /><br />
<input type="submit" class="topicbuton" name="submit" value="Submit" /><br /><br />
</form>
<?php
$conn->Close();
}
?>
</div></div></div>
<?php include ('footer.php'); ?>
Return current item: phpBlogger