* @license GNU Affero General Public License * @version 0.6 * @date 2010-09-06 * @since 0.1 */ $Author = 'SQLFusion LLC'; $Keywords = 'Keywords for search engine'; $Description = 'Description for search engine'; $background_color = 'white'; include_once 'config.php'; include_once 'includes/ofuz_check_access.script.inc.php'; $pageTitle = _('Contacts') . ' :: Ofuz '; include_once 'includes/header.inc.php'; //rebuilding contact view if it's empty $do_cv = new ContactView(); if ($do_cv->isContactViewEmpty()) { $do_con = new Contact(); if ($do_con->getTotalNumContactsForUser($_SESSION["do_User"]->iduser)) { $do_cv->rebuildContactUserTable(); } } if (!is_object($_SESSION['do_Contacts'])) { $do_Contacts = new Contact(); // $do_Contacts->get_all_contacts(); $do_Contacts->setRegistry("all_contacts"); $do_Contacts->sessionPersistent("do_Contacts", "index.php", 36000); //$_SESSION['refresh_contacts'] = true; $do_Contacts->query("SELECT * FROM " . $do_Contacts->getSqlViewName() . " ORDER BY " . $do_Contacts->sql_view_order . " LIMIT " . $do_Contacts->sql_qry_start . "," . $do_Contacts->sql_view_limit); } else { ///$_SESSION['do_Contacts']->setLog("\n ----------------- \n [Contact] :: contacts page query:".$_SESSION['do_Contacts']->getSqlQuery()."\n --------------\n"); $_SESSION['do_Contacts']->query();