Location: PHPKode > projects > PHP Enter > admin/update.php
<?php
/* * ************************************
* PHP Enter is licensed under the
* GNU General Public License version 2
* ************************************* */
include ('header.php');
?>
<div id=vforms>
<div id="cconfig">Upgrade 4.1.6.</div>
<?php
$sql = ("INSERT INTO  `$database`.`abcoption` (
`optionid` ,
`nameopt` ,
`valueopt` ,
`module` ,
`active`
)
VALUES
('37',  'payoffon',  '0',  '0',  '0'),
('38',  'payvalue',  '10.00 $',  '0',  '0'),
('39',  'payday',  '180',  '0',  '0'),
('40',  'Public Timeline',  'timeline.php',  '1',  '0');");
if($conn->Execute($sql) === false) {
	print '<br /><div id="error">Error: '.$conn->ErrorMsg().'</div><br />';
} else {
	echo "All Done<br />";
}
$sql2 = ("ALTER TABLE  `newser` ADD  `main` TINYINT( 1 ) NOT NULL DEFAULT  '0' AFTER  `blogid`");
if($conn->Execute($sql2) === false) {
	print '<br /><div id="error">Error: '.$conn->ErrorMsg().'</div><br />';
} else {
	echo "All Done<br />";
}

$sql3 = ("ALTER TABLE  `modules` ADD  `idmod` INT( 11 ) NOT NULL AFTER  `modid`");
if($conn->Execute($sql3) === false) {
	print '<br /><div id="error">Error: '.$conn->ErrorMsg().'</div><br />';
} else {
	echo "All Done<br />";
}


		

$sql4 = ("INSERT INTO `modules` (`modid`, `idmod`, `modname`, `modimag`, `modap`, `mactive`, `mabstrt`) VALUES
(1, 40, 'Bookmarklet', 'folder.png', '1', 0, 'Bookmarklets (Buttons) are links you add to your browser''s Bookmarks Toolbar.

To install the bookmarklet in your browser just drag and drop the link below to your bookmarks.

<a href=\"javascript:(function(){f=''http://www.example.com/bookmark.php?urld=''+encodeURIComponent(window.location.href.replace(/http?:/i, '''').replace(/https?:/i, ''''))+''&title=''+encodeURIComponent(document.title)+''&notes''+encodeURIComponent(''''+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text))+''&v=6&'';a=function(){if(!window.open(f+''noui=1&jump=doclose'',''enter'',''location=yes,links=no,scrollbars=no,toolbar=no,width=620,height=250''))location.href=f+''jump=yes''};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()\">Save on phpEnter.net</a>');");


if($conn->Execute($sql4) === false) {
	print '<br /><div id="error">Error: '.$conn->ErrorMsg().'</div><br />';
} else {
	echo "All Done<br />";

}
?>
</div>
<?php
include ('footer.php');
$conn->Close();
/**************************************
* Revision: v.4.1.6.
***************************************/
?>
Return current item: PHP Enter