';
}
// end of status bar
// ------------------------------------------------------------------------------------------------------
// MAIN action panel
if ($_GET[action] && $_SESSION[status]==1) {
echo '
';
// ------------------------------------
// ------------------------------------
$q="SELECT * FROM menu where cid=$_SESSION[uid] ORDER BY `order` ASC;";
$sql2=mysql_query($q);
while ($r=mysql_fetch_array($sql2, MYSQL_BOTH))
{
if ($_GET[section]==$r['link']) $o='1'; else $o='0.5';
/* */
echo '
';
}
//----------------------------------------------------------------------------
if ($_GET[action]=='dashboard') {
echo '
Your Website Configuration
';
echo '
';
}
//----------------------------------------------------------------------------
if ($_GET[action]=='editsection') {
$q="SELECT * FROM menu where cid=$_SESSION[uid] and link='$_GET[section]'";
$sql2=mysql_query($q);
$r=mysql_fetch_array($sql2, MYSQL_BOTH);
echo '
You\'re edditing: '.$r[caption].' section of your website
';
// saves form data to database before displaying
if ($_POST[saved]==1) {
foreach( $_POST[form] as $key => $value){
//echo "ID: $key, V: $value ";
$q="UPDATE configuration set value='$value' where setting_id=$key";
mysql_query($q);
}
}
// end ---
// automaticaly pulls fields from database ---
echo '';
}
// end of action panel
// ------------------------------------------------------------------------------------------------------
//echo '
';
//print_r($_POST);
//echo '
';
if ($_POST and $_POST[password]==$_POST[password2] && $_POST[password] && $_POST[fullname] && $_POST[email] && $_POST[terms]=='on') {
$name=explode(' ',$_POST[fullname]);
echo '