public function get_sublevel($cname, $level, $showHidden = TRUE, $getModuleData = TRUE) { echo tendoo_warning('Tendoo::get_sublevel(...) est une méthode déprécié, Utiliser Tendoo::get(...) à la plage'); if ($level <= $this->levelLimit) { if ($showHidden == FALSE) { get_db()->where('PAGE_VISIBLE', 'TRUE'); } get_db()->select('*')->where('PAGE_PARENT', $cname)->order_by('PAGE_POSITION', 'asc')->from('tendoo_controllers'); $query = get_db()->get(); if ($query->num_rows > 0) { $array = array(); foreach ($query->result() as $obj) { $array[] = array('ID' => $obj->ID, 'PAGE_CNAME' => $obj->PAGE_CNAME, 'PAGE_PARENT' => $obj->PAGE_PARENT, 'PAGE_NAMES' => $obj->PAGE_NAMES, 'PAGE_MODULES' => $obj->PAGE_MODULES == '#LINK#' ? $obj->PAGE_MODULES : $this->getSpeModuleByNamespace($obj->PAGE_MODULES), 'PAGE_TITLE' => $obj->PAGE_TITLE, 'PAGE_DESCRIPTION' => $obj->PAGE_DESCRIPTION, 'PAGE_MAIN' => $obj->PAGE_MAIN, 'PAGE_VISIBLE' => $obj->PAGE_VISIBLE, 'PAGE_CHILDS' => $this->get_sublevel($obj->ID, $level + 1), 'PAGE_LINK' => $obj->PAGE_LINK, 'PAGE_POSITION' => $obj->PAGE_POSITION); } return $array; } } return false; }
function fetch_notice_output($e, $extends_msg = '', $sort = FALSE) { if ($e === TRUE) { ?> <style> .notice_sorter { border:solid 1px #999; color:#333; } .notice_sorter thead td { padding:2px 10px; text-align:center; background:#EEE; background:-moz-linear-gradient(top,#EEE,#CCC); border:solid 1px #999; } .notice_sorter tbody td { padding:2px 10px; text-align:justify; background:#FFF; border:solid 1px #999; } </style><table class="notice_sorter"><thead> <style> .notice_sorter { border:solid 1px #999; color:#333; } .notice_sorter thead td { padding:2px 10px; text-align:center; background:#EEE; background:-moz-linear-gradient(top,#EEE,#CCC); border:solid 1px #999; } .notice_sorter tbody td { padding:2px 10px; text-align:justify; background:#FFF; border:solid 1px #999; } </style> <tr><td>Index</td><td>Code</td><td>Description</td></tr></thead><tbody><?php $index = 1; foreach ($__ as $k => $v) { ?> <tr><td><?php echo $index; ?> </td><td><?php echo $k; ?> </td><td><?php echo strip_tags($v); ?> </td></tr><?php $index++; } ?> </tbody></table><?php } else { if (is_string($e)) { $notices = force_array(get_core_vars('tendoo_notices')); if (in_array($e, $notices) || array_key_exists($e, $notices)) { return $notices[$e]; } else { if (isset($notices)) { if (array_key_exists($e, $notices)) { return $notices[$e]; } else { return tendoo_warning(__(sprintf('"%s" is not a valid error code', $e))); } } else { if ($e != '' && strlen($e) <= 50) { return tendoo_warning(__(sprintf('"%s" is not a valid error code', $e))); } else { return $e; } } } } return false; } }
public function paginate($elpp, $ttel, $pagestyle, $classOn, $classOff, $current_page, $baselink, $ajaxis_link = null) { tendoo_warning('<strong>tendoo::paginate</strong> est désormais déprécié, utilisez "<strong>doPaginate</strong>" à la place.'); /*// Gloabl ressources Control*/ if (!is_finite($elpp)) { echo '<strong>$elpp</strong> is not finite'; return; } elseif (!is_finite($pagestyle)) { echo '<strong>$pagestyle</strong> is not finite'; return; } elseif (!is_finite($current_page)) { echo '<strong>$current_page</strong> is not finite'; return; } $more = array(); if ($pagestyle == 1) { $ttpage = ceil($ttel / $elpp); if (($current_page > $ttpage || $current_page < 1) && $ttel > 0) { return array('', null, null, false, $more); } $firstoshow = ($current_page - 1) * $elpp; /*// FTS*/ if ($current_page < 5) { $fts = 1; } elseif ($current_page >= 5) { $fts = $current_page - 4; } /*// LTS*/ if ($current_page + 4 <= $ttpage) { $lts = $current_page + 4; /*elseif($ttpage > 5):$lts = $ttpage - $current_page;*/ } else { $lts = $ttpage; } $content = null; for ($i = $fts; $i <= $lts; $i++) { $more[] = array('link' => $baselink . $i, 'text' => $i, 'state' => (int) $i === (int) $current_page ? $classOn : $classOff); static $content = 'Page :'; if ($i == $fts && $i != 1) { $content = $content . '<span style="margin:0 2px">...</span>'; } if ($current_page == $i) { $content = $content . '<span style="margin:0 2px">' . $i . '</span>'; } else { if ($ajaxis_link != null) { $content = $content . '<a ajaxis_link="' . $ajaxis_link . $i . '" href="' . $baselink . $i . '" class="' . $classOn . '" style="margin:0 2px" title="Aller à la page ' . $i . '">' . $i . '</a>'; } else { $content = $content . '<a href="' . $baselink . $i . '" class="' . $classOn . '" style="margin:0 2px" title="Aller à la page ' . $i . '">' . $i . '</a>'; } } if ($i == $lts && $i != $ttpage) { $content = $content . '<span style="margin:0 2px">...</span>'; } } return array($content, $firstoshow, $elpp, true, $more); } else { if ($pagestyle == 2) { $ttpage = ceil($ttel / $elpp); if ($current_page > $ttpage || $current_page < 1) { return array('', null, null, false); } $firstoshow = ($current_page - 1) * $elpp; if ($current_page == 1) { $content['Precedent'] = '<a class="' . $classOff . '">Précédent</a>'; } else { if ($current_page > 1) { if ($ajaxis_link != null) { $content['Precedent'] = '<a ajaxis_link="' . $ajaxis_link . ($current_page - 1) . '" href="' . $baselink . ($current_page - 1) . '" class="' . $classOn . '">Précédent</a>'; } else { $content['Precedent'] = '<a href="' . $baselink . ($current_page - 1) . '" class="' . $classOn . '">Précédent</a>'; } } } if ($current_page == $ttpage) { $content['Suivant'] = '<a class="' . $classOff . '">Suivant</a>'; } else { if ($current_page < $ttpage) { if ($ajaxis_link != null) { $content['Suivant'] = '<a ajaxis_link="' . $ajaxis_link . ($current_page + 1) . '" class="' . $classOn . '" href="' . $baselink . ($current_page + 1) . '">Suivant</a>'; } else { $content['Suivant'] = '<a class="' . $classOn . '" href="' . $baselink . ($current_page + 1) . '">Suivant</a>'; } } } /*// Debug*/ /*echo 'Frist To Show: '.$fts.'<br>'; echo 'Current Page: '.$current_page.'<br>'; echo 'Last To Show: '.$lts.'<br>';*/ return array($content, $firstoshow, $elpp, true); } } }
</div> </div> </header> <section class="scrollable"> <div class="wrapper"> <div class="row"> <div class="col-lg-6"> <div class="panel"> <div class="panel-heading"> <?php _e('Create manually a sitemap'); ?> </div> <div class="panel-body"> <?php echo tendoo_warning(__('Please make sure you know what you\'re doing.')); ?> <form fjax method="POST" action="<?php echo $this->instance->url->site_url(array('admin', 'ajax', 'sm_manual')); ?> "> <div class="form-group"> <textarea name="sitemap" class="form-control" rows="10"><?php echo $getSitemap; ?> </textarea> </div> <div class="form-group"> <input type="submit" class="btn <?php echo theme_button_class(); ?>
/** * Error String * * Returns the error messages as a string, wrapped in the error delimiters * * @access public * @param string * @param string * @return str */ public function error_string($prefix = '', $suffix = '') { // No errrors, validation passes! if (count($this->_error_array) === 0) { return ''; } if ($prefix == '') { $prefix = $this->_error_prefix; } if ($suffix == '') { $suffix = $this->_error_suffix; } // Generate the error string $str = '<ul style="">'; foreach ($this->_error_array as $val) { if ($val != '') { $str .= "<li>" . $val . "</li>"; } } $str .= "</ul>"; return tendoo_warning($str); // We're Using Tendoo So :D }
<div class="panel-heading">Erreur</div> <div class="panel-body"> <?php echo tendoo_warning('Vous ne pouvez vous faire un message ...'); ?> </div> </section> <?php } } else { ?> <section class="panel"> <div class="panel-heading">Erreur</div> <div class="panel-body"> <?php echo tendoo_warning('Cet utilisateur n\'est pas inscrit pour recevoir une réponse.'); ?> </div> </section> <?php } ?> </div> </div> </section> </section> </section> <footer class="footer bg-white b-t"> </footer> </section> </section> <a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen" data-target="#nav"></a> </section>
</div> <?php } ?> <input class="btn btn-sm <?php echo theme_button_class(); ?> " type="submit" value="<?php _e('Save Settings'); ?> "/> </form> </div> <div class="tab-pane active" id="autorisation"> <?php echo tendoo_warning('Veuillez patienter la notification de réssite, confirmant l\'enregistrement des modifications.'); ?> <div class="row"> <div class="col-lg-3"> <h4> <?php _e('Main Settings'); ?> </h4> <?php if (get_instance()->users_global->isSuperAdmin()) { ?> <form fjax method="post" action="<?php echo get_instance()->url->site_url(array('admin', 'ajax', 'toogleStoreAccess')); ?> ">
</h4> <p class="block text-muted"> <?php echo get_page('description'); ?> </p> </div> </div> </header> <section class="scrollable"> <div class="wrapper"> <div class="row"> <div class="col-lg-12"> <?php if ($priv_stats == FALSE || count($stats['ordered']) <= 1) { echo tendoo_warning('Si aucun graphisme ne s\'affiche, c\'est certainement parce qu\'il n\'y a pas beaucoup de donnée à traiter'); } output('notice'); ?> </div> <div class="col-lg-4"> <section class="panel"> <header class="panel-heading">Statistiques sur les utilisateurs</header> <div class="panel-body text-center"> <div class="sparkline inline" data-type="pie" data-height="250" data-slice-colors="[<?php if (is_array($priv_stats)) { array('#cafa5d', '#c159e2', '#a7404a', '#011a89', '#af198b', '#549fbc'); // aborded $array = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 'a', 'b', 'c', 'd', 'e', 'f'); for ($i = 0; $i < count($priv_stats); $i++) { $color = "'#" . $array[rand(0, count($array) - 1)] . $array[rand(0, count($array) - 1)] . $array[rand(0, count($array) - 1)] . $array[rand(0, count($array) - 1)] . $array[rand(0, count($array) - 1)] . $array[rand(0, count($array) - 1)] . "'";
/** * default_notices * * Register default tendoo warning * * @access private * @return void **/ private function default_notices() { $__['config-file-founded'] = tendoo_info(__('A config file already exists. If you save new data the older will be overwritten')); $__['accessDenied'] = $__['access-denied'] = tendoo_warning(__('Access denied. Your access is not granted to this page')); $__['installation-failed'] = tendoo_warning(__('Error occured during installation. Please remove tendoo and install it again')); $__['no-theme-installed'] = tendoo_warning(__('Error occured. It seems that there isn\'t any theme installed')); $__['role-required'] = tendoo_warning(__('Role must be set first before creating user.')); $__['controler_created'] = tendoo_success(' Le contrôleur à été correctement crée.'); $__['c_name_already_found'] = tendoo_warning('Une autre page possède déjà ce nom comme contrôleur, veuillez choisir un autre nom.'); $__['name_already_found'] = tendoo_warning('Une autre page possède déjà ce nom, veuillez choisir un autre nom.'); $__['controler_deleted'] = tendoo_success(' Le contrôleur à été correctement supprimé.'); $__['controllers_updated'] = tendoo_success('Les contrôleurs ont été correctement mis à jour.'); $__['incorrectSuperAdminPassword'] = tendoo_warning('Le mot de passe administrateur est incorrect'); $__['cantHeritFromItSelf'] = tendoo_warning('Ce contrôleur ne peut pas être un sous menu de lui même. La modification de l\'emplacement à échoué.'); $__['cantSendMsgToYou'] = tendoo_warning('Une erreur s\'est produite, vous ne pouvez pas vous envoyer un message.'); $__['curl_is_not_set'] = tendoo_warning('CURL n\'est pas disponible sur ce site.'); $__['unkConSpeAsParent'] = tendoo_warning('Le contrôleur (Menu), définie comme parent est introuvable. La modification du contrôleur à échoué.'); $__['module_success_enabled'] = tendoo_success('Le module à correctement été activé.'); $__['module_success_disabled'] = tendoo_success('Le module à correctement été désactivé.'); $__['addingActionFailure'] = tendoo_warning('La création d\'action pour ce module à échoué.'); $__['subMenuLevelReach'] = tendoo_warning('Impossible de créer ou de modifier ce contrôleur, la limitation en terme de sous menu à été atteinte. Veuillez choisir un autre menu ou en créer un nouveau.'); $__['cantUserReservedCNames'] = tendoo_warning('Ce code du contrôleur est un code reservé, vous ne pouvez pas l\'utiliser.'); $__['unknowProfil'] = tendoo_warning('Le profil que vous souhaitez visiter est introuvable. Il est en outre probable que cet utilisateur n\'existe pas ou que son compte à été supprimé.'); $__['upload_invalid_filesize'] = tendoo_warning('La taille du fichier est supérieur à celle autorisée.'); $__['cant_delete_mainpage'] = tendoo_warning(' La page principale ne peut pas être supprimé.'); $__['controler_edited'] = tendoo_success(' Le contrôleur à été correctement modifié.'); $__['db_unable_to_connect'] = tendoo_warning('Il est impossible de se connecter à la base de données avec les informations fournies.'); $__['db_unable_to_select'] = tendoo_warning('La connexion à été établie, cependant il est impossible d\'accéder à la base de donnée.'); $__['error-occured'] = tendoo_warning(translate('A error occured during this operation.')); $__['adminDeleted'] = tendoo_success(' L\'utilisateur à été correctement supprimé.'); $__['controller_not_found'] = tendoo_warning(' Ce contrôleur est introuvable.'); $__['no_main_controller_created'] = tendoo_warning(' Aucun contrôleur définit comme principale n\'a été retrouvé, le nouveau contrôleur à été définit comme contrôleur par défaut.'); $__['no_main_page_set'] = tendoo_info(' Aucun contrôleur n\'est définie par défaut.'); $__['no_priv_created'] = tendoo_info(' Aucun privilège n\'a été crée, Pour administrer les actions, il est indispensable de créer un privilège au moins.'); $__['InvalidModule'] = tendoo_warning('Ce module est invalide ou incompatible.'); $__['CantDeleteDir'] = tendoo_warning('Une erreur s\'est produite durant la suppréssion d\'un dossier.'); $__['module_corrupted'] = tendoo_warning('Ce module ne peut pas être installé. Il est corrompu ou incompatible.'); $__['errorInstallModuleFirst'] = tendoo_warning('Vous devez installer les tables avant d\'installer le module'); $__['module-has-been-installed'] = tendoo_success(translate('The module has been sucessfully installed.')); $__['module-already-exists'] = tendoo_warning(translate('A module with the same namespace already exists.')); $__['unactive-or-unknow-module'] = tendoo_warning(__('This module is not found or has been disabled.')); // Translated $__['module-has-been-installed'] = tendoo_success('Le module à été désinstallé.'); $__['InvalidPage'] = tendoo_warning('Cette page n\'a pas pu être chargé car le contrôleur correspondant à cette adresse est introuvable ou indisponible.'); // Deprecated ? $__['noControllerDefined'] = tendoo_warning('Impossible d\'accéder à cet élement, Il ne dispose pas d\'interface embarqué.'); $__['cantSetChildAsMain'] = tendoo_warning('Un sous menu ne peut pas être définie comme page principale. La modification de la priorité à échouée.'); $__['noFileUpdated'] = tendoo_warning('Aucun fichier n\'a été reçu.'); $__['done'] = tendoo_success('L\'opération s\'est déroulée avec succès.'); $__['accessForbiden'] = tendoo_warning('Vous ne faites pas partie du privilès qui peut accéder à cette page.'); $__['userCreated'] = tendoo_success('L\'utilisateur a été crée.'); $__['userNotFoundOrWrongPass'] = tendoo_warning('Utilisateur introuvable ou mot de passe incorrect.'); $__['notForYourPriv'] = tendoo_warning('Accéder à cet élément ne fait pas partie de vos actions.'); $__['unknowAdmin'] = tendoo_warning('Administrateur introuvable.'); $__['moduleBug'] = tendoo_warning('Une erreur s\'est produite. Le module attaché à ce contrôleur est introuvable ou désactivé.'); $__['page-404-or-module-bug'] = tendoo_warning(__('Error occured. Page not found or bound module is not well defined.')); $__['notAllowed'] = tendoo_warning('Il ne vous est pas permis d\'effctuer cette opération. Soit compte tenu de votre privilège actuel, soit compte tenu de l\'indisponibilité du service.'); $__['theme_alreadyExist'] = tendoo_info('Ce thème avait déjà été installé.'); $__['NoCompatibleTheme'] = tendoo_warning('Ce thème n\'est pas compatible avec la version actuelle d\'tendoo.'); $__['NoCompatibleModule'] = tendoo_warning(translate('module_compatibility_issues')); $__['module_updated'] = tendoo_success(translate('module_updated')); $__['SystemDirNameUsed'] = tendoo_warning('Ce thème ne peut pas s\'installer car il à tenter d\'utiliser des ressources système.'); $__['theme_installed'] = tendoo_success('Le thème a été installé correctement.'); $__['no_theme_selected'] = tendoo_warning('Aucun thème n\'a été choisi comme thème par défaut.'); $__['defaultThemeSet'] = tendoo_success('Le thème à été correctement choisi come thème par défaut.'); $__['theme-not-found'] = tendoo_warning('Thème inconnu ou introuvable.'); $__['missingArg'] = tendoo_warning('Une erreur s\'est produite. Certains élément, qui permettent le traitement de votre demande, sont manquant ou incorrect.'); $__['page-404'] = tendoo_warning('Cette page est introuvable ou indisponible. Veuillez re-éssayer.'); // $__['restoringDone'] = tendoo_success('La restauration s\'est correctement déroulé.'); // $__['cmsRestored'] = tendoo_success('La restauration s\'est correctement déroulé.'); $__['creatingHiddenControllerFailure'] = tendoo_warning('La création du contrôleur invisible à échoué'); $__['installFailed'] = tendoo_warning('Une erreur s\'est produite durant l\'installtion certaines composantes n\'ont pas été correctement installées'); $__['db_connect_error'] = tendoo_warning('Connexion impossible,intérrompu ou le nombre limit de connexion accordé à l\'utilisateur de la base de donné est atteinte. Veuillez re-éssayer.'); $__['themeCrashed'] = tendoo_warning('Une erreur s\'est produite avec le thème. Ce thème ne fonctionne pas correctement.'); $__['noMainPage'] = tendoo_warning('Impossible d\'accéder à la page principale du site. Aucun contrôleur n\'a été définit comme principal'); $__['admin-auth-failed'] = tendoo_warning(__('Incorrect password or user not found')); $__['super-admin-creation-failed'] = tendoo_warning(__('Super administrator creation failed. Check if, for this website, there are not yet a super administrator.')); $__['user-has-been-created'] = tendoo_success(__('User has been successfully created.')); $__['no-controller-set'] = tendoo_warning(__('There is no controller available')); $__['role-not-found'] = tendoo_warning(__('Role not found')); $__['invalid-app'] = tendoo_warning(__('This app is not a valid Tendoo App. Installation has failed.')); $__['users-creation-failed'] = tendoo_warning(__('User creation failed, check if this pseudo is not already taken.')); $__['table-creation-failed'] = tendoo_warning(__('Error occured. Tables wasn\'t installed. Check your provided database login data')); $__['upload-invalid-file-type'] = tendoo_warning(__('This file type is not allowed')); $__['controller-not-properly'] = tendoo_warning(__('Controller interface is not well defined')); // $__['themeControlerNoFound'] = tendoo_warning('Ce thème ne dispose pas d\'interface embarqué..'); // Deprecated ? $__['pseudo-already-in-use'] = tendoo_warning(__('This pseudo is already used. Please choose another one')); $__['email-already-used'] = tendoo_warning(__('This email is already used, please choose another one or try to restore your account.')); $__['unallowed-role'] = tendoo_warning(__('This role is not allowed.')); $__['unactive-account'] = tendoo_warning(__('This account is not yet active. Please, check the inbox associated to this email address. If there is no activation mail, you can try to receive it again, with the activation wizard.')); $__['already-active'] = tendoo_warning(__('Activation mail could not been send. This account seems to be already active.')); $__['action-prohibited'] = tendoo_warning(__('You are not granted to do this.')); $__['unknow-email'] = tendoo_warning(__('There is no account associated to this email address')); $__['activation-mail-send'] = tendoo_success(__('An activation mail has been send.')); $__['registration-not-allowed'] = $__['registration-disabled'] = tendoo_warning(__('Registration and associated services are disabled in this website.')); $__['new-link-send'] = tendoo_success(__('A new link has been send to your email address.')); $__['expiration-time-reached'] = tendoo_warning(__('This link is no more valid.')); $__['activation-failed'] = tendoo_warning(__('This activation link is no more valid.')); $__['account-activation-done'] = tendoo_success(__('This account is now active')); $__['account-activation-failed'] = tendoo_warning(__('The account activation failed.')); $__['password-matches-error'] = tendoo_warning(__('The new password should not match the old one.')); $__['password-has-changed'] = tendoo_success(__('The password has been changed.')); $__['upload-file-no-available'] = tendoo_warning(__('Select a file first.')); $__['cannot-delete-active-role'] = tendoo_warning(__('A role in use can\'t be deleted.')); $__['profile-updated'] = tendoo_success(__('Profile has been updated.')); $__['role-permissions-saved'] = tendoo_success(__('Role permissions has been saved.')); $__['unsupported-by-current-theme'] = tendoo_warning(__('Active theme does\'nt support this module')); $__['user-meta-has-been-reset'] = tendoo_success(__('Your account settings has been reset')); // Tendoo 1.4 $__['web-app-mode-enabled'] = tendoo_warning(__('While "WebApp" Mode is enabled, frontend is disabled. Check your settings to define tendoo mode on Website setings tab.')); $__['form-expired'] = tendoo_warning(__('Current form data has expired. Please try to submit it again')); // CustomQuery Notices $__['incorrect-given-meta'] = tendoo_warning(__('Incorrect meta data. This meta doesn\'t seems to be approuved for the custom query.')); $__['incorrect-key-given'] = tendoo_warning(__('Incorrect key given.')); $__['unknow-taxonomy-given'] = tendoo_warning(__('Unknow taxonomy given.')); $__['error-occured-while-checking-query-title'] = tendoo_warning(__('Error occured while checking title.')); $__['custom-query-saved'] = tendoo_success(__('Custom Query has been saved.')); $__['unknow-key-for-custom-query'] = tendoo_warning(__('Unknow key for custom query.')); $__['unknow-custom-query'] = tendoo_warning(__('Unknow custom query.')); $__['unknow-taxonomy-to-set-as-parent'] = tendoo_warning(__('Unknow taxonomy to set as parent.')); $__['taxonomy-set'] = tendoo_success(__('Taxonomy has been set.')); $__['taxonomy-already-exists'] = tendoo_warning(__('Taxonomy already exists. Please choose another name.')); $__['unknow-taxonomy'] = tendoo_warning(__('Unknow taxonomy.')); $__['taxonomy-cant-be-his-own-parent'] = tendoo_warning(__('Taxonomy cant be his own parent.')); $__['taxonomy-deleted'] = tendoo_success(__('Taxonomy has been deleted.')); $__['cant-delete-the-latest-taxonomy'] = tendoo_warning(__('The latest taxonomy can\'t be deleted.')); $__['taxonomy-not-found-or-bound'] = tendoo_warning(__('The concerned taxonomy is not found or is already bound.')); $__['dooooooooo'] = tendoo_warning(__('dooooooooooo')); $__['incorrect-query-parent'] = tendoo_error(__('Incorrect parent has been given. Make sure that the parent id doesn\'t match the current query id.')); $__['unknow-post'] = tendoo_error(__('Unknow post. provided id may be incorrect, or post not found.')); $__['unknow-user'] = tendoo_error(__('Unknow user, or this user may no exists.')); $__['comment-submitted'] = tendoo_success(__('Your comment has been successfully posted.')); $__['comment-deleted'] = tendoo_error(__('The comment has been deleted.')); $__['unknow-status'] = tendoo_error(__('Unknow status.')); $__['comment-edited'] = tendoo_success(__('Comment edited')); set_core_vars('default_notices', $__); }