Location: PHPKode > projects > ProPHP > ProPHP/content/admin/save_settings.php
<?php
/*****************************************************************
************* BKWORKS PRO PHP V 0.5 BETA 1 ***********************
******************** BRYAN KOOIENGA ******************************
****************** DECEMBER 20, 2007 *****************************
*****************************************************************/
if(!defined("INDEX")) { # If it's not the template calling the script, then head to the homepage
	header("location: ../../?view=home");
}
include('include/functions.php');
if(!is_admin("$username")) { # If not an admin user then
	echo "<h3>Access is denied</h3>";
} else { # It is an admin.
	if($_POST['url']) {
		$query = "UPDATE settings
			SET install_url = '$_POST[url]'
		WHERE always_one = '1'";
		mysql_query($query) or die("Can't query because " . mysql_error());
		echo "<h3>SUCCESS!</h3>
		Settings saved successfully.<br>
		<a href=\"?view=admin\">Click here to go back to the admin panel.</a>";
	} else {
		echo ("You need to include an installation URL. Please <a href=\"?view=admin\">click here</a> to go back and fix this problem.");
	}
}
?>
Return current item: ProPHP