Example #1
0
 private function config()
 {
     setup_admin_left_menu('Page Editor', 'edit');
     add_admin_left_menu('Accueil', module_url(array('index')));
     add_admin_left_menu('Créer une page', module_url(array('create')));
     add_admin_left_menu('Réglages', module_url(array('settings')));
     // -----------------------------------------------------------------------------------------------------
     declare_notice('page_created', tendoo_success(__('The page has sucessfully been created.')));
     declare_notice('successfully_updated', tendoo_success(__('The page has sucessfully been updated.')));
 }
Example #2
0
$lang['aauth_error_account_not_verified'] = __('Your account has not been verified. Please check your e-mail and verify your account.');
$lang['aauth_error_no_group'] = __('Group does not exist');
$lang['aauth_error_self_pm'] = __('It is not possible to send a Message to yourself.');
$lang['aauth_error_no_pm'] = __('Private Message not found');
/* Info messages */
$lang['aauth_info_already_member'] = __('User is already member of group');
$lang['aauth_info_group_exists'] = __('Group name already exists');
$lang['aauth_info_perm_exists'] = __('Permission name already exists');
$lang['group-updated'] = tendoo_success(__('The group has been updated'));
$lang['fetch-error-from-auth'] = function () {
    $errors_array = get_instance()->users->auth->get_errors_array();
    $notice_array = get_instance()->users->auth->get_infos_array();
    foreach ($errors_array as $_error) {
        echo tendoo_error($_error);
    }
    foreach ($notice_array as $notice) {
        echo tendoo_error($notice);
    }
};
// User Edition
$lang['user-updated'] = tendoo_success(__('User settings\'s has been updated.'));
$lang['user-deleted'] = tendoo_success(__('The user has been deleted.'));
$lang['pass-change-error'] = tendoo_error(__('The new password cannot match the old one, please use another password.'));
$lang['old-pass-incorrect'] = tendoo_error(__('Your old password is not correct.'));
// Group
$lang['group-already-exists'] = tendoo_error(__('A group with this name already exists. Please choose another name.'));
$lang['group-created'] = tendoo_success(__('Group has been created.'));
$lang['group-not-found'] = tendoo_error(__('This group does\'nt exists or has been deleted.'));
$lang['unknow-group'] = tendoo_error(__('Unknow group.'));
$lang['updated'] = tendoo_success(__('Group has been updated.'));
Example #3
0
$lang['email-used'] = tendoo_error(__('This email is already used.'));
$lang['email-already-taken'] = tendoo_error(__('This email seems to be already taken.'));
$lang['username-already-taken'] = tendoo_error(__('This username seems to be already taken.'));
$lang['user-created'] = tendoo_success(__('The user has been successfully created.'));
$lang['account-activated'] = tendoo_success(__('Your Account has been activated. Please Sign-up'));
// Recovery
$lang['unknow-email'] = tendoo_error(__('Unknow email address'));
$lang['recovery-email-send'] = tendoo_success(__('The recovery email has been send. Please check your email, open the recovery email and follow the instructions.'));
// Logout
$lang['logout-required'] = tendoo_info(__('You must logout first to access that page.'));
// General
$lang['new-password-created'] = tendoo_success(__('A new password has been created for your account. Check your email to get it.'));
$lang['module-enabled'] = tendoo_success(__('The module has been enabled.'));
$lang['module-disabled'] = tendoo_success(__('The module has been disabled.'));
$lang['module-removed'] = tendoo_success(__('The module has been removed.'));
$lang['module-extracted'] = tendoo_success(__('The module has been extracted.'));
$lang['module-updated'] = tendoo_success(__('The module has been updated.'));
$lang['old-version-cannot-be-installed'] = tendoo_error(__('The version installed is already up to date.'));
$lang['unable-to-update'] = tendoo_error(__('An error occured during update.'));
$lang['config-file-not-found'] = tendoo_error(__('Config file hasn\'t been found. This file is not a valid module. Installation aborded !!!'));
// Extension
$lang['fetch-from-upload'] = function () {
    $error = array('error' => get_instance()->upload->display_errors());
    foreach ($error as $type => $_error) {
        if ($type == 'error') {
            echo tendoo_error(strip_tags($_error));
        } else {
            echo tendoo_info(strip_tags($_error));
        }
    }
};
Example #4
0
<?php

global $NOTICE_SUPER_ARRAY;
/// -------------------------------------------------------------------------------------------------------------------///
$or['fileReplaced'] = tendoo_success('Le fichier &agrave; &eacute;t&eacute; correctement modifi&eacute;.');
/// -------------------------------------------------------------------------------------------------------------------///
$NOTICE_SUPER_ARRAY = $or;
if (class_exists('tendoo_admin')) {
    class file_contentAdmin extends Libraries
    {
        public function __construct($data)
        {
            // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
            parent::__construct();
            __extends($this);
            // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
            $this->instance = get_instance();
            $this->data = $data;
            $this->tendoo =& $this->instance->tendoo;
            $this->tendoo_admin =& $this->instance->tendoo_admin;
            $this->users_global =& $this->instance->users_global;
            $module = get_core_vars('opened_module');
            $this->dir = 'tendoo-modules/' . $module['encrypted_dir'];
            if (!is_dir($this->dir . '/content_repository')) {
                mkdir($this->dir . '/content_repository');
            }
            $this->cp_dir = $this->dir . '/content_repository';
        }
        public function datetime()
        {
            return $this->instance->date->datetime();
Example #5
0
 public function edit($e)
 {
     js_push_if_not_exists('jquery-ui-1.10.4.custom.min');
     css_push_if_not_exists('jquery-ui-1.10.4.custom.min');
     if (!current_user_can('blogster@edit_posts')) {
         $this->url->redirect(array('admin', 'index?notice=accessDenied'));
     }
     set_core_vars('categories', $this->news->getCat());
     if (count(get_core_vars('categories')) == 0) {
         $this->url->redirect(array('admin', 'open', 'modules', $this->opened_module['namespace'], 'category', 'create?notice=noCategoryCreated'));
     }
     // Control Sended Form Datas
     $this->load->library('form_validation');
     $this->form_validation->set_error_delimiters('<div class="alert alert-danger"><button type="button" class="close" data-dismiss="alert"><i class="icon-remove"></i></button><i style="font-size:18px;margin-right:5px;" class="icon-warning-sign"></i>', '</div>');
     $this->form_validation->set_rules('news_name', 'Intitulé de l\'article', 'trim|max_length[200]');
     $this->form_validation->set_rules('news_content', 'Contenu de l\'article', 'trim|max_length[20000]');
     $this->form_validation->set_rules('push_directly', 'Choix de l\'action', 'trim|max_length[10]');
     $this->form_validation->set_rules('image_link', 'Lien de l\'image', 'trim|max_length[1000]');
     $this->form_validation->set_rules('thumb_link', 'Lien de l\'image', 'trim|max_length[1000]');
     // $this->form_validation->set_rules('category','Cat&eacute;gorie','trim|min_length[1]|max_length[200]');
     $this->form_validation->set_rules('article_id', 'Identifiant de l\'article', 'required|min_length[1]');
     if ($this->form_validation->run()) {
         $this->data['result'] = $this->news->edit($this->input->post('article_id'), $this->input->post('news_name'), $this->input->post('news_content'), $this->input->post('push_directly'), $this->input->post('image_link'), $this->input->post('thumb_link'), isset($_POST['category']) ? $_POST['category'] : array(1), isset($_POST['artKeyWord']) ? $_POST['artKeyWord'] : false, $this->input->post('scheduledDate'), $this->input->post('scheduledTime'));
         if ($this->data['result']) {
             notice('push', tendoo_success(__('Post updated.')));
         } else {
             notice('push', fetch_notice_output('error'));
         }
     }
     // Retreiving News Data
     set_core_vars('getSpeNews', $this->news->getSpeNews($e));
     if (get_core_vars('getSpeNews') == false) {
         module_location(array('index?notice=unknowArticle'));
     }
     // Récupération des mots clés de l'article.
     set_core_vars('getKeyWords', $this->news->getNewsKeyWords($e));
     //		var_dump($this->data['getKeyWords']);
     set_core_vars('getNewsCategories', $this->news->getArticlesRelatedCategory($e));
     // Définition du titre
     set_page('title', __('Blogster - Edit a post'));
     // Chargement de l'éditeur
     $this->instance->visual_editor->loadEditor(1);
     // Ajout des fichier du plugin bootstrap mutiselect
     $this->file->js_url = $this->url->main_url();
     js_push_if_not_exists(MODULES_DIR . $this->opened_module['encrypted_dir'] . '/js/bootstrap-multiselect');
     $this->file->css_url = $this->url->main_url();
     css_push_if_not_exists(MODULES_DIR . $this->opened_module['encrypted_dir'] . '/css/bootstrap-multiselect');
     // Loading Bloster Script
     $this->file->js_url = $this->url->main_url();
     js_push_if_not_exists(MODULES_DIR . $this->opened_module['encrypted_dir'] . '/js/blogster.script');
     $this->load->view(MODULES_DIR . $this->opened_module['encrypted_dir'] . '/views/edit', $this->data, false, TRUE, $this);
 }
Example #6
0
/// -------------------------------------------------------------------------------------------------------------------///
$or['categoryCreated'] = tendoo_success('La cat&eacute;gorie &agrave; &eacute;t&eacute; correctement cr&eacute;e');
$or['categoryAldreadyCreated'] = tendoo_error('Cette cat&eacute;gorie existe d&eacute;j&agrave;');
$or['unknowCat'] = $or['unknowCategory'] = tendoo_error('Cette cat&eacute;gorie est inexistante');
$or['unknowKeyWord'] = tendoo_error('Mot-clé introuvable.');
$or['categoryUpdated'] = tendoo_success('La mise &agrave; jour &agrave; r&eacute;ussie');
$or['categoryDeleted'] = tendoo_success('La cat&eacute;gorie &agrave; &eacute;t&eacute; supprim&eacute; avec succ&egrave;s');
$or['artCreated'] = tendoo_success('L\'article à correctement été crée.');
$or['categoryNotEmpty'] = tendoo_error('Cette cat&eacute;gorie ne peut pas &ecirc;tre supprim&eacute;e, car il existe des publications qui y sont rattach&eacute;es. Changez la cat&eacute;gorie de ces publications avant de supprimer cette cat&eacute;gorie.');
$or['unknowArticle'] = tendoo_error('Article introuvable');
$or['noCategoryCreated'] = tendoo_error(' Avant de publier un article, vous devez cr&eacute;er une cat&eacute;gorie.');
$or['connectToComment'] = tendoo_error(' Vous devez &ecirc;tre connect&eacute; pour commenter.');
$or['unknowComments'] = tendoo_error(' Commentaire introuvable.');
$or['commentDeleted'] = tendoo_success('<i class="icon-checkmark"></i> Commentaire supprim&eacute;.');
$or['submitedForApproval'] = tendoo_success('<i class="icon-checkmark"></i> Votre commentaire &agrave; &eacute;t&eacute; soumis pour une examination.');
foreach ($or as $key => $notice_text) {
    declare_notice($key, $notice_text);
}
if (class_exists('tendoo_admin')) {
    class blogster_library extends Libraries
    {
        private $data;
        public function __construct()
        {
            // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
            parent::__construct();
            __extends($this);
            // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
            $this->module = get_modules('filter_namespace', 'blogster');
            $this->data = array();
Example #7
0
 /**
  * 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&ocirc;leur &agrave; &eacute;t&eacute; correctement cr&eacute;e.');
     $__['c_name_already_found'] = tendoo_warning('Une autre page poss&egrave;de d&eacute;j&agrave; ce nom comme contr&ocirc;leur, veuillez choisir un autre nom.');
     $__['name_already_found'] = tendoo_warning('Une autre page poss&egrave;de d&eacute;j&agrave; ce nom, veuillez choisir un autre nom.');
     $__['controler_deleted'] = tendoo_success(' Le contr&ocirc;leur &agrave; &eacute;t&eacute; correctement supprim&eacute;.');
     $__['controllers_updated'] = tendoo_success('Les contr&ocirc;leurs ont été correctement mis à jour.');
     $__['incorrectSuperAdminPassword'] = tendoo_warning('Le mot de passe administrateur est incorrect');
     $__['cantHeritFromItSelf'] = tendoo_warning('Ce contr&ocirc;leur ne peut pas &ecirc;tre un sous menu de lui m&ecirc;me. La modification de l\'emplacement &agrave; &eacute;chou&eacute;.');
     $__['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&ocirc;leur (Menu), d&eacute;finie comme parent est introuvable. La modification du contr&ocirc;leur &agrave; &eacute;chou&eacute;.');
     $__['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&eacute;ation d\'action pour ce module &agrave; &eacute;chou&eacute;.');
     $__['subMenuLevelReach'] = tendoo_warning('Impossible de cr&eacute;er ou de modifier ce contr&ocirc;leur, la limitation en terme de sous menu &agrave; &eacute;t&eacute; atteinte. Veuillez choisir un autre menu ou en cr&eacute;er un nouveau.');
     $__['cantUserReservedCNames'] = tendoo_warning('Ce code du contr&ocirc;leur est un code reserv&eacute;, 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 &agrave; &eacute;t&eacute; supprim&eacute;.');
     $__['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 &ecirc;tre supprim&eacute;.');
     $__['controler_edited'] = tendoo_success(' Le contr&ocirc;leur &agrave; &eacute;t&eacute; correctement modifi&eacute;.');
     $__['db_unable_to_connect'] = tendoo_warning('Il est impossible de se connecter &agrave; la base de donn&eacute;es avec les informations fournies.');
     $__['db_unable_to_select'] = tendoo_warning('La connexion &agrave; &eacute;t&eacute; &eacute;tablie, cependant il est impossible d\'acc&eacute;der &agrave; la base de donn&eacute;e.');
     $__['error-occured'] = tendoo_warning(translate('A error occured during this operation.'));
     $__['adminDeleted'] = tendoo_success(' L\'utilisateur &agrave; &eacute;t&eacute; correctement supprim&eacute;.');
     $__['controller_not_found'] = tendoo_warning(' Ce contr&ocirc;leur est introuvable.');
     $__['no_main_controller_created'] = tendoo_warning(' Aucun contr&ocirc;leur d&eacute;finit comme principale n\'a &eacute;t&eacute; retrouv&eacute;, le nouveau contr&ocirc;leur &agrave; &eacute;t&eacute; d&eacute;finit comme contr&ocirc;leur par d&eacute;faut.');
     $__['no_main_page_set'] = tendoo_info(' Aucun contr&ocirc;leur n\'est d&eacute;finie par d&eacute;faut.');
     $__['no_priv_created'] = tendoo_info(' Aucun privil&egrave;ge n\'a &eacute;t&eacute; cr&eacute;e, Pour administrer les actions, il est indispensable de cr&eacute;er un privil&egrave;ge au moins.');
     $__['InvalidModule'] = tendoo_warning('Ce module est invalide ou incompatible.');
     $__['CantDeleteDir'] = tendoo_warning('Une erreur s\'est produite durant la suppr&eacute;ssion d\'un dossier.');
     $__['module_corrupted'] = tendoo_warning('Ce module ne peut pas &ecirc;tre install&eacute;. 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 &agrave; &eacute;t&eacute; d&eacute;sinstall&eacute;.');
     $__['InvalidPage'] = tendoo_warning('Cette page n\'a pas pu &ecirc;tre charg&eacute; car le contr&ocirc;leur correspondant &agrave; cette adresse est introuvable ou indisponible.');
     // Deprecated ?
     $__['noControllerDefined'] = tendoo_warning('Impossible d\'acc&eacute;der &agrave; cet &eacute;lement, Il ne dispose pas d\'interface embarqu&eacute;.');
     $__['cantSetChildAsMain'] = tendoo_warning('Un sous menu ne peut pas &ecirc;tre d&eacute;finie comme page principale. La modification de la priorit&eacute; &agrave; &eacute;chou&eacute;e.');
     $__['noFileUpdated'] = tendoo_warning('Aucun fichier n\'a &eacute;t&eacute; re&ccedil;u.');
     $__['done'] = tendoo_success('L\'op&eacute;ration s\'est d&eacute;roul&eacute;e avec succ&egrave;s.');
     $__['accessForbiden'] = tendoo_warning('Vous ne faites pas partie du privil&egrave;s qui peut acc&eacute;der &agrave; cette page.');
     $__['userCreated'] = tendoo_success('L\'utilisateur a &eacute;t&eacute; cr&eacute;e.');
     $__['userNotFoundOrWrongPass'] = tendoo_warning('Utilisateur introuvable ou mot de passe incorrect.');
     $__['notForYourPriv'] = tendoo_warning('Acc&eacute;der &agrave; cet &eacute;l&eacute;ment ne fait pas partie de vos actions.');
     $__['unknowAdmin'] = tendoo_warning('Administrateur introuvable.');
     $__['moduleBug'] = tendoo_warning('Une erreur s\'est produite. Le module attach&eacute; &agrave; ce contr&ocirc;leur est introuvable ou d&eacute;sactiv&eacute;.');
     $__['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&eacute;ration. Soit compte tenu de votre privil&egrave;ge actuel, soit compte tenu de l\'indisponibilit&eacute; du service.');
     $__['theme_alreadyExist'] = tendoo_info('Ce th&egrave;me avait d&eacute;j&agrave; &eacute;t&eacute; install&eacute;.');
     $__['NoCompatibleTheme'] = tendoo_warning('Ce th&egrave;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&egrave;me ne peut pas s\'installer car il &agrave; tenter d\'utiliser des ressources syst&egrave;me.');
     $__['theme_installed'] = tendoo_success('Le th&egrave;me a &eacute;t&eacute; install&eacute; correctement.');
     $__['no_theme_selected'] = tendoo_warning('Aucun th&egrave;me n\'a &eacute;t&eacute; choisi comme th&egrave;me par d&eacute;faut.');
     $__['defaultThemeSet'] = tendoo_success('Le th&egrave;me &agrave; &eacute;t&eacute; correctement choisi come th&egrave;me par d&eacute;faut.');
     $__['theme-not-found'] = tendoo_warning('Th&egrave;me inconnu ou introuvable.');
     $__['missingArg'] = tendoo_warning('Une erreur s\'est produite. Certains &eacute;l&eacute;ment, qui permettent le traitement de votre demande, sont manquant ou incorrect.');
     $__['page-404'] = tendoo_warning('Cette page est introuvable ou indisponible. Veuillez re-&eacute;ssayer.');
     // $__['restoringDone']				=	tendoo_success('La restauration s\'est correctement d&eacute;roul&eacute;.');
     // $__['cmsRestored']				=	tendoo_success('La restauration s\'est correctement d&eacute;roul&eacute;.');
     $__['creatingHiddenControllerFailure'] = tendoo_warning('La cr&eacute;ation du contr&ocirc;leur invisible &agrave; &eacute;chou&eacute;');
     $__['installFailed'] = tendoo_warning('Une erreur s\'est produite durant l\'installtion certaines composantes n\'ont pas &eacute;t&eacute; correctement install&eacute;es');
     $__['db_connect_error'] = tendoo_warning('Connexion impossible,int&eacute;rrompu ou le nombre limit de connexion accord&eacute; &agrave; l\'utilisateur de la base de donn&eacute; est atteinte. Veuillez re-&eacute;ssayer.');
     $__['themeCrashed'] = tendoo_warning('Une erreur s\'est produite avec le th&egrave;me. Ce th&egrave;me ne fonctionne pas correctement.');
     $__['noMainPage'] = tendoo_warning('Impossible d\'acc&eacute;der &agrave; la page principale du site. Aucun contr&ocirc;leur n\'a &eacute;t&eacute; d&eacute;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&egrave;me ne dispose pas d\'interface embarqu&eacute;..'); // 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', $__);
 }
</ol></div><?php 
} else {
    ?>
<div class="panel"><div class="panel-heading"> <?php 
    _e('Controller not found. You may create a new one');
    ?>
 </div></div><?php 
}
$result = addslashes(ob_get_contents());
ob_end_clean();
if (true == false) {
    ?>
    <script type="text/javascript">
    <?php 
}
?>
	tendoo.notice.alert('<?php 
echo strip_tags(tendoo_success(_e('A controller has been succefully created')));
?>
');
	$('#controller_form').append("<input type='reset'>");
	$('#controller_form').find('[type="reset"]').trigger('click').remove();

	$('.TENDOO_MENU form').hide(500).html("<?php 
echo $result;
?>
").show(500,function(){
		tendoo.controllers	=	new tendoo_controllers();
		bootCScript();
	});
	
Example #9
0
<?php

// Blog Lang
$lang['unknow-taxonomy-given'] = tendoo_error(__('Unknow taxonomy given.'));
$lang['incorrect-query-parent'] = tendoo_error(__('Incorrect Query parent given.'));
$lang['incorrect-given-meta'] = tendoo_error(__('Incorrect meta given.'));
$lang['error-occured-while-checking-query-title'] = tendoo_error(__('An error occured during title parsing.'));
$lang['unknow-custom-query'] = tendoo_error(__('Unknow custom query.'));
$lang['custom-query-saved'] = tendoo_success(__('Custom query saved.'));
$lang['unknow-key-for-custom-query'] = tendoo_error(__('Unknow key for custom query.'));
$lang['custom-query-deleted'] = tendoo_error(__('Custom Query deleted'));
$lang['unknow-custom-query'] = tendoo_error(__('Unknow custom query.'));
$lang['unknow-taxonomy-to-set-as-parent'] = tendoo_error(__('Unknow taxonomy to set as parent.'));
$lang['taxonomy-set'] = tendoo_success(__('taxonomy has been set.'));
$lang['taxonomy-already-exists'] = tendoo_error(__('Taxonmy already exists.'));
$lang['unknow-taxonomy'] = tendoo_error(__('Unknow taxonomy.'));
$lang['taxonomy-cant-be-his-own-parent'] = tendoo_error(__('Taxonomy can\'t be his own parent.'));
$lang['taxonomy-deleted'] = tendoo_error(__('Taxonomy has been deleted.'));
$lang['cant-delete-the-latest-taxonomy'] = tendoo_error(__('Can\'t delete the latest taxonomy.'));
$lang['taxonomy-not-found-or-bound'] = tendoo_error(__('Taxonomy not found or bound.'));
$lang['comment-submitted'] = tendoo_success(__('Comment submited.'));
$lang['unknow-post'] = tendoo_error(__('Unknow custom taxonomy.'));
$lang['comment-deleted'] = tendoo_error(__('Comment has been deleted.'));
$lang['unknow-status'] = tendoo_error(__('Unknow status.'));
$lang['comment-edited'] = tendoo_error(__('Comment edited.'));
$lang['unknow-comment'] = tendoo_error(__('Unknow comment.'));