0) { ?>
'; else echo ''; ?>"; //style sheet stored in /tabs.css echo ""; echo ""; if($_SESSION[news_feeds_on]) echo ""; else echo ""; echo ""; if(!$_SESSION[LP]) echo ""; echo ""; if(!$_SESSION[LP]) echo ""; echo ""; } ?> |
";
if(!$_SESSION[logged_in])
echo "User Login :"; else{ //display the editing header //include( "cms_dbasecode".DIRECTORY_SEPARATOR."admin_editing_header.php"); } //writeContents(); echo ""; ?>"; if($warnings["user_password"]) echo $warnings["user_password"]." "; if($warnings["dateWrn2"]) echo $warnings["dateWrn2"]." "; if($warnings["month"]) echo $warnings["month"]." "; if($warnings["year"]) echo $warnings["year"]." "; if (count($warnings) > 0) echo count($warnings); echo " "; //this code outputs the contents of submitted form. to be used only durung developemnts. print_r($warnings); echo ""; */ //include( "cms_dbasecode".DIRECTORY_SEPARATOR."edit_markup.php"); include( "cms_dbasecode".DIRECTORY_SEPARATOR."admin_editing_header.php"); if($_SESSION[temporary_credit_text]){ $ref_note = $_SESSION[temporary_credit_text]; echo " ";
echo $ref_note;
echo " ";
$_SESSION[temporary_credit_text] = false;
}
//echo "New content"; //update the login time if(!$_SESSION[login_time]) $_SESSION[login_time] = 'login_time'; if($_SESSION[login_time] != $_SESSION[user_id]) updateLoginTime($_SESSION[user_id]); $_SESSION[login_time] = $_SESSION[user_id]; //start of display user name $loginRow = getRow(admin_auth, id, $_SESSION[user_id]); $user_email = $loginRow[user_email]; if(!$loginRow[user_name]){ $namelength = strpos($user_email, '@'); $user_name = substr($user_email, 0, $namelength); //$_POST['user_name'] = substr($user_email, 0, $namelength); if(eregi("\.", $user_name)) //echo "user_name contains a dot"; $user_name = str_replace('.', '_', $user_name); //replace . by _ $user_name = ucwords($user_name); }else $user_name = $loginRow[user_name]; $validRow = getRow('subscr', 'sub_id', '1'); $current_time = time(); $expired_date = $validRow[sub_to_date]; $_SESSION[expired_date] = $expired_date; $days_remaining = ($expired_date - $current_time)/(24*60*60); if($days_remaining < 0) $days_remaining = 0; $days_remaining = round($days_remaining); //echo "";; //initiate session to use in renewal of credit $_SESSION[days_remaining] = $days_remaining; //end of display user name //echo ""; if(($_SESSION[free_licence] == 'no' ) and ($days_remaining < 14) ){ echo "licence is expiring in ".$days_remaining." days."; include( "cms_templates".DIRECTORY_SEPARATOR."paypal_button.php"); } echo " home"; if(!$_SESSION[welcome_message]) echo "Welcome"; else echo "Connect"; if(!$_SESSION[welcome_message]){ echo "";
//echo "This community website is a free online resource / directory that seeks to connect people from all walks of life. In order to get the most out of it please feel free to explore or read latest updates.";
//echo " Do you believe that information should be free ?, if so why not try out this online resource. How ?, by sharing information you can get feedback responses from other users.";
//echo " Do you believe that information should be free ?, Should you pay to get your questions answered ?. ";
$_SESSION[welcome_message] = 'welcome_message';
}
echo "Find out how others are using this free online tool to share their ideas. You can too . . ."; echo "Proudly Zimbabwean, get connected to people, share information, jobs, contracts etc. In order to get the most out of this website please feel free to contribute, or explore or read latest updates posted on the community noticeboard."; echo " ";
echo " ";
//if(!$_GET[search])
echo "find a page:";
include( "cms_dbasecode".DIRECTORY_SEPARATOR."search_form.php");
if(!$_GET[search]){
echo '".$user_name.""; include( "cms_comments".DIRECTORY_SEPARATOR."messages_inc.php"); /* if($data[is_new]=='y') echo " "; else echo " "; */ echo " ';
echo ' ';
}
?>
"; //style sheet stored in /tabs.css
echo "";
echo "";
if($_SESSION[news_feeds_on])
echo "";
else
echo "";
echo "";
if(!$_SESSION[LP])
echo "";
echo "";
if(!$_SESSION[LP])
echo "";
echo "";
//////////\\\\\\\\\\\\\\\\\////////////////
*/
//echo "";
//if($_GET[search])
//include( "cms_dbasecode".DIRECTORY_SEPARATOR."search_form.php");
//$_SESSION[read_user_guidelines] = 'set';
/*
if($_SESSION[read_user_guidelines] != 'read'){
echo "";
//echo "";
//echo "";
}
*/
/*
//start of get file properties
$upload_name ="C:\wamp\www\BuildingControl_2\SQL\chung.pdf";
$docfilename = $upload_name;
$len_name = strlen($docfilename);
$ini_ext = $len_name - 3;
$len_ext = 3;
$ext = substr($docfilename,$ini_ext,$len_ext);
echo "extention = ".$ext."
"; $char = DIRECTORY_SEPARATOR; $match = explode($char, $upload_name ); $array_size = count($match); $array_size = $array_size - 1; echo "file name = ".$match[$array_size]." "; //end of get file properties */ if($_SESSION[user_id] != '1'){ echo " My pages :"; writeMyPages(); echo " "; } if($_SESSION[logged_in]){ include( "cms_dbasecode".DIRECTORY_SEPARATOR."feeds_display.php"); echo "scroll using above arrow "; echo ""; } /* echo "Latest edits :"; writeRecentEdits(); echo " "; echo ""; */ $user_groups_count = countAllUserGroups(); if($user_groups_count > 1){ //echo "existing user groups :"; $_SESSION[show_edit_link] = 'n'; writeUserGroups(); $_SESSION[show_edit_link] = false; //echo " "; } echo ""; if($_SESSION[message_on]) sendReminderEmails(); //include( "cms_dbasecode".DIRECTORY_SEPARATOR."tag_cloud_new.php"); ?> "; include( "cms_templates".DIRECTORY_SEPARATOR."paypal_button.php"); //echo ""; echo ""; } */ ?>
|
your new page has been created
"; echo "click here to view the new page > >"; echo "