<?
//////////////////////////////////////////////////////////////////
// OrbitFAQ //
// --------- //
// //
// Orbit FAQ was solely written and developed by Orbit Services //
// http://www.orbitservices.net //
// //
// Access the Forum here: //
// http://forums.orbitservices.net/index.php?c=4 //
// //
// OrbitFAQ utilises the following opensource projects/classes; //
// + Fckeditor - http://www.fckeditor.net //
// + Smarty Template Engine - http://smarty.php.net //
// + Swift Email Class - http://www.swiftmailer.org/ //
// + OWASP PHP Filter Project - http://www.owasp.org //
// + MySQL Search Class by Stephen Bartholomew //
// //
//////////////////////////////////////////////////////////////////
$accesslvl = $_SESSION['orbitfaq_accesslevel'];
if(($accesslvl == 'admin')OR($accesslvl == 'superadmin'))
{
// Set the Pending QNS to 0
$pending_qns=0;
// Get our questions
$query_qn = "SELECT id from orbitfaq_questions WHERE a_id = '0' OR a_id = ''";
$result_qn = $faqsql_query ($query_qn)OR DIE( "$sql_query_error $query_qn");
$pending_qns = $faqsql_count_rows($result_qn);
// if the pending questions is more than 0
if($pending_qns != '0')
{
// Set our message
$action_msg = "NOTICE: You have $pending_qns Questions awaiting your response!!!";
}
}
?>