public function Parent_change_pass()
 {
     parent::Parent_controller();
     $password_min = $this->global_variables->get("MinPasswordLen");
     $old = $this->entity->password($this->user_id);
     $this->form_data = array("name" => "change_password", "view" => "common/change_password/form.html", 'redirect' => $this->role . '/change_pass/success', "fields" => array("old" => array("display_name" => "Old Password", "id_field_type" => "string", "form_field_type" => "password", "validation_rules" => "required|md5[{$old}]"), "password" => array("display_name" => "New Password", "id_field_type" => "string", "form_field_type" => "password", "validation_rules" => "required|min_length[{$password_min}]"), "confirm" => array("display_name" => "Confirm New Password", "id_field_type" => "string", "form_field_type" => "password", "validation_rules" => "required|matches[password]")));
 }
 public function Parent_change_login()
 {
     parent::Parent_controller();
     $password_min = $this->global_variables->get("MinPasswordLen");
     $old = $this->entity->password($this->user_id);
     $this->form_data = array("name" => "change_login", "view" => "common/change_login/form.html", 'redirect' => $this->role . '/change_login/success', "fields" => array("password" => array("display_name" => "Current Password", "id_field_type" => "string", "form_field_type" => "password", "validation_rules" => "required|md5[{$old}]"), "login" => array("display_name" => "New Login", "id_field_type" => "string", "form_field_type" => "text", "validation_rules" => "required|valid_email")));
 }
Exemplo n.º 3
0
 public function Dashboard()
 {
     parent::Parent_controller();
     $this->_add_ajax();
     $this->load->model('entity', '', TRUE);
     $this->load->helper('fields');
     $this->load->library('Table_Builder');
     $this->load->library("Plugins", array('path' => array('advertiser', 'dashboard')));
 }
Exemplo n.º 4
0
 /**
  * конструктор класса,
  * вносит изменения в структуру базового класса 
  *
  * @return ничего не возвращает
  */
 public function Manage_ads()
 {
     parent::Parent_controller();
     $this->_add_ajax();
     $this->_set_title(__('Advertiser') . ' - ' . __('Manage Ads'));
     $this->_set_help_index("advertiser_manage_ads");
     $this->load->library('Plugins', array('path' => array('advertiser', 'manageads')));
     $this->session->unset_userdata('id_xml');
     $this->session->unset_userdata('add_site_channel');
 }
Exemplo n.º 5
0
 /**
  * конструктор класса,
  * подключает необходимые js библиотеки, загружает модели и хелперы
  *
  * @return ничего не возвращает
  */
 public function __construct()
 {
     parent::Parent_controller();
     $this->_add_ajax();
     $this->load->model('entity', '', TRUE);
     $this->load->helper('fields');
     $this->load->library('Table_Builder');
     // Загружаем dashboard
     $this->_dashboard = new Sppc_Dashboard();
     $this->_dashboard->setRole('admin');
 }
Exemplo n.º 6
0
 public function Parent_login()
 {
     parent::Parent_controller();
     //      header("Expires: " . gmdate("D, d M Y H:i:s" . " GMT"));    // дата в прошлом
     //      header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");                                                            // всегда модифицируется
     //      header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");  // HTTP/1.1
     //      header("Cache-Control: post-check=0, pre-check=0", false);
     //      header("Pragma: no-cache");                          // HTTP/1.0
     //      header('Cache-Control: ');
     //      header('Pragma: ');
     $this->load->library('Plugins', array('path' => array('review_controller'), 'interface' => 'Sppc_Search_Controller_SiteReviewInterface'));
 }
 /**
  * конструктор класса, вызов базового конструктора
  *
  * @return ничего не возвращает
  */
 public function Manage_ads_groups()
 {
     parent::Parent_controller();
     $pluginsConfig = Zend_Registry::getInstance()->get('pluginsConfig');
     if (isset($pluginsConfig->advertiser->manage_ads->groups)) {
         foreach ($pluginsConfig->advertiser->manage_ads->groups as $hookClass) {
             $hookObj = new $hookClass();
             if ($hookObj instanceof Sppc_Advertiser_ManageAds_Groups_EventHandlerInterface) {
                 $this->_hooks[] = $hookObj;
             }
         }
     }
 }
 /**
  * конструктор класса,
  * подключает необходимые js библиотеки, загружает модели и хелперы
  *
  * @return ничего не возвращает
  */
 public function Manage_advertisers()
 {
     parent::Parent_controller();
     $this->_add_ajax();
     $this->load->model('entity', '', TRUE);
     $this->load->helper('fields');
     $this->load->library('Table_Builder');
     // load hooks
     $pluginsConfig = Zend_Registry::getInstance()->get('pluginsConfig');
     if (isset($pluginsConfig->admin->manage_advertisers_extended)) {
         foreach ($pluginsConfig->admin->manage_advertisers_extended as $hookClass) {
             $hookObj = new $hookClass();
             if ($hookObj instanceof Sppc_Admin_ManageAdvertisers_EventHandlerInterface) {
                 $this->_hooks[] = $hookObj;
             }
         }
     }
 }
Exemplo n.º 9
0
 /**
  * конструктор класса,
  * описывает форму для редактирования данных пользователя
  *
  * @return ничего не возвращает
  */
 public function Parent_entity()
 {
     parent::Parent_controller();
     $this->load->library('Plugins', array('path' => array('advertiser', 'sign_up'), 'interface' => 'Sppc_Advertiser_SignUp_Interface'));
     $this->form_mode = $this->input->post('upgrade_mail') === FALSE;
     $this->content['NEEDAGREE'] = '';
     $this->content['ERROR_BIRTHDAY'] = '';
     $this->load->model("entity");
     $password_min = $this->global_variables->get("MinPasswordLen");
     //$default_country = $this->global_variables->get("DefaultCountry");
     $this->form_data = array("name" => "sign_up", "view" => $this->view, "vars" => array("COUPONS_SETTINGS" => ''), "fields" => array("name" => array("display_name" => "Full name", "id_field_type" => "string", "form_field_type" => "text", "validation_rules" => "required", 'max' => 50), "mail" => array("display_name" => "E-mail", "id_field_type" => "string", "form_field_type" => "text", "validation_rules" => "required|valid_email", 'max' => 100), "password" => array("display_name" => "Password", "id_field_type" => "string", "form_field_type" => "password", "validation_rules" => "required|min_length[{$password_min}]", "default" => NULL, 'max' => 20), "confirm" => array("display_name" => "Confirm Password", "id_field_type" => "string", "form_field_type" => "password", "validation_rules" => "required|matches[password]", 'max' => 20), "country" => array("display_name" => "Country", "id_field_type" => "string", "form_field_type" => "select", "options" => "countries", 'params' => array('add_select' => true)), "timezone" => array("display_name" => "TimeZone", "id_field_type" => "int", "form_field_type" => "select", "options" => "timezones", 'params' => array('add_select' => true), "default" => ''), "city" => array("display_name" => "City", "id_field_type" => "string", "form_field_type" => "text", 'max' => 100), "state" => array("display_name" => "State", "id_field_type" => "string", "form_field_type" => "text", 'max' => 100), "address" => array("display_name" => "Address", "id_field_type" => "string", "form_field_type" => "text", 'max' => 100), "zip_postal" => array("display_name" => "ZIP/Postal Code", "id_field_type" => "string", "form_field_type" => "text", 'max' => 100), "phone" => array("display_name" => "Phone #", "id_field_type" => "string", "form_field_type" => "text", 'max' => 100), "agree" => array("display_name" => "Agree", "form_field_type" => "checkbox")));
     foreach ($this->_additional_form_fields as $field_name => $field) {
         $this->form_data['fields'][$field_name] = $field;
     }
     if ($this->show_upgrade_form == true) {
         $this->upgrade_form = array("name" => "upgrade_form", "view" => 'common/sign_up/upgrade_form.html', "fields" => array("upgrade_mail" => array("display_name" => "E-mail", "id_field_type" => "string", "form_field_type" => "text", "validation_rules" => "required|valid_email", 'max' => 100), "upgrade_password" => array("display_name" => "Password", "id_field_type" => "string", "form_field_type" => "password", "validation_rules" => "required|min_length[{$password_min}]", "default" => NULL, 'max' => 20)), "vars" => array("COUPONS_SETTINGS" => ""));
     }
 }
Exemplo n.º 10
0
 public function Dashboard()
 {
     parent::Parent_controller();
 }
Exemplo n.º 11
0
 public function Contact_us()
 {
     parent::Parent_controller();
     $this->messageid = uniqid();
 }
Exemplo n.º 12
0
 public function Logout()
 {
     parent::Parent_controller();
     $this->_logout("admin/login");
 }
Exemplo n.º 13
0
 public function Home()
 {
     parent::Parent_controller();
     $this->_add_java_script('j');
     $this->_add_java_script('stuff');
 }
Exemplo n.º 14
0
 public function Create_group()
 {
     parent::Parent_controller();
     $this->load->library('form');
 }
 /**
  * конструктор класса
  *
  * @return ничего не возвращает
  */
 public function Parent_forgot_password()
 {
     parent::Parent_controller();
     $this->_set_title("Forgot Password");
     $this->_set_help_index("forgot_password");
 }
Exemplo n.º 16
0
 /**
  * Конструктор класса, вызов конструктора базового класса
  *
  * @return Add_funds
  */
 public function Add_funds()
 {
     parent::Parent_controller();
     $this->content['paypalNEEDAGREE'] = '';
     $this->content['authoriseNEEDAGREE'] = '';
 }
Exemplo n.º 17
0
 public function Terms()
 {
     parent::Parent_controller();
 }
Exemplo n.º 18
0
 /**
  * Конструктор класса
  *
  * @return Parent_targeting_group
  */
 public function Parent_targeting_list()
 {
     parent::Parent_controller();
 }
Exemplo n.º 19
0
 /**
  * конструктор класса
  *
  * @return ничего не возвращает
  */
 public function System_settings()
 {
     parent::Parent_controller();
     $this->_set_title(implode(self::TITLE_SEP, array(__("Administrator"), __("System Settings"))));
     $this->_set_help_index("system_settings");
 }
Exemplo n.º 20
0
 /**
  * конструктор класса, вызов базового конструктора
  *
  * @return ничего не возвращает
  */
 public function Manage_ads_ads()
 {
     parent::Parent_controller();
     $this->_load_temporary();
 }
Exemplo n.º 21
0
 public function Parent_get_plugin()
 {
     parent::Parent_controller();
     $this->_add_css('cms_plugins/cms_plugins');
 }
Exemplo n.º 22
0
 public function Policy()
 {
     parent::Parent_controller();
 }