exit; } // Creating the Client object for the selected FAQ $clientObj = new SmartclientClient($id); // If the selected client was not found, exit if ($clientObj->notLoaded()) { redirect_header("javascript:history.go(-1)", 2, _MD_SCLIENT_NOCLIENTSELECTED); exit; } // Chech the status if ($clientObj->status() != _SCLIENT_STATUS_ACTIVE) { redirect_header("javascript:history.go(-1)", 2, _NOPERM); exit; } // Updating the counter $clientObj->updateHits_page(); // Populating the smarty variables with informations related to the selected Client $client = $clientObj->toArray(); $xoopsTpl->assign('client', $client); // Lanugage constants $xoopsTpl->assign('lang_contact', _CO_SCLIENT_CONTACT); $xoopsTpl->assign('lang_email', _CO_SCLIENT_EMAIL); $xoopsTpl->assign('lang_adress', _CO_SCLIENT_ADRESS); $xoopsTpl->assign('lang_phone', _CO_SCLIENT_PHONE); $xoopsTpl->assign('lang_website', _CO_SCLIENT_WEBSITE); $xoopsTpl->assign('lang_times', _CO_SCLIENT_TIMES); $xoopsTpl->assign('lang_stats', _CO_SCLIENT_STATS); $xoopsTpl->assign('lang_client_informations', _CO_SCLIENT_CLIENT_INFORMATIONS); $xoopsTpl->assign('lang_page_been_seen', _CO_SCLIENT_PAGE_BEEN_SEEN); $xoopsTpl->assign('lang_url_been_visited', _CO_SCLIENT_URL_BEEN_VISITED); $xoopsTpl->assign('backtoindex', $xoopsModuleConfig['backtoindex']);