예제 #1
0
 /**
  *  constructor 
  *  
  *  initialize internal variables
  */
 function apu_uri_user()
 {
     global $lang_str;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['max_records_per_page_fn'] = null;
     $this->opt['perm_edit'] = true;
     $this->opt['perm_insert'] = true;
     $this->opt['perm_delete'] = true;
     $this->opt['screen_name'] = "URI self provisioning";
     $this->opt['max_uris'] = null;
     $this->opt['allowed_domains'] = null;
     /* message on attributes update */
     $this->opt['msg_update']['short'] =& $lang_str['msg_uri_updated_s'];
     $this->opt['msg_update']['long'] =& $lang_str['msg_uri_updated_l'];
     $this->opt['msg_create']['short'] =& $lang_str['msg_uri_created_s'];
     $this->opt['msg_create']['long'] =& $lang_str['msg_uri_created_l'];
     $this->opt['msg_delete']['short'] =& $lang_str['msg_uri_deleted_s'];
     $this->opt['msg_delete']['long'] =& $lang_str['msg_uri_deleted_l'];
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     /* name of html form */
     $this->opt['form_name'] = 'uriForm';
     /* pager */
     $this->opt['smarty_pager'] = 'pager';
     $this->opt['smarty_uris'] = 'uris';
     $this->opt['smarty_url_insert'] = 'url_insert';
     $this->opt['smarty_url_uri_suggest'] = 'url_uri_suggest';
     $this->opt['smarty_url_uri_generate'] = 'url_uri_generate';
 }
예제 #2
0
 function apu_lcr()
 {
     global $lang_str;
     parent::apu_base_class();
     /* set default values to $this->opt */
     /*** names of variables assigned to smarty ***/
     /* pager */
     $this->opt['smarty_pager'] = 'pager';
     $this->opt['smarty_lcr'] = 'lcr';
 }
예제 #3
0
 /**
  *  constructor 
  *  
  *  initialize internal variables
  */
 function apu_sorter()
 {
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['sorter_name'] = '';
     $this->opt['default_sort_col'] = '';
     $this->opt['desc_order_by_default'] = false;
     $this->opt['on_change_callback'] = '';
     /*** names of variables assigned to smarty ***/
     $this->opt['smarty_vars'] = 'url_sort';
     $this->opt['smarty_order'] = 'sorter_order_by';
     $this->opt['smarty_dir'] = 'sorter_dir';
 }
 function apu_reg_confirmation()
 {
     global $lang_str, $config;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['setup_jabber_account'] = $config->setup_jabber_account;
     /* alias generation */
     $this->opt['create_numeric_alias'] = $config->create_numeric_alias_to_new_users;
     /*** names of variables assigned to smarty ***/
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     $this->opt['smarty_status'] = 'status';
 }
 function apu_password_update()
 {
     global $lang_str, $config;
     parent::apu_base_class();
     /* set default values to $this->opt */
     /* message on attributes update */
     $this->opt['msg_update']['short'] =& $lang_str['msg_changes_saved_s'];
     $this->opt['msg_update']['long'] =& $lang_str['msg_changes_saved_l'];
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     /* name of html form */
     $this->opt['form_name'] = '';
 }
예제 #6
0
 function apu_msilo()
 {
     global $lang_str;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['im_sending_script'] = "send_im.php";
     /* message on attributes update */
     $this->opt['msg_delete']['short'] =& $lang_str['msg_im_deleted_s'];
     $this->opt['msg_delete']['long'] =& $lang_str['msg_im_deleted_l'];
     /*** names of variables assigned to smarty ***/
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     $this->opt['smarty_im'] = 'im';
     /* pager */
     $this->opt['smarty_pager'] = 'pager';
 }
 /**
  *  constructor 
  *  
  *  initialize internal variables
  */
 function apu_hello_world()
 {
     global $lang_str;
     parent::apu_base_class();
     $this->opt['screen_name'] = "Hello world";
     /* message on attributes update */
     $this->opt['msg_update']['long'] =& $lang_str['msg_changes_saved_l'];
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     /* name of html form */
     $this->opt['form_name'] = '';
     $this->opt['smarty_name'] = 'name';
 }
 /**
  *  constructor 
  *  
  *  initialize internal variables
  */
 function apu_attr_types_import()
 {
     global $lang_str;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['redirect_on_import'] = "";
     /* message on attributes import */
     $this->opt['msg_import']['short'] =& $lang_str['msg_at_imported_s'];
     $this->opt['msg_import']['long'] =& $lang_str['msg_at_imported_l'];
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     /* name of html form */
     $this->opt['form_name'] = '';
 }
 /**
  *  constructor 
  *  
  *  initialize internal variables
  */
 function apu_filter_dropdown()
 {
     global $lang_str;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['filter_name'] = '';
     $this->opt['on_change_callback'] = '';
     $this->opt['filter_items'] = array();
     $this->opt['exclude_filter_items'] = array();
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'filter_form';
     /* name of html form */
     $this->opt['form_name'] = 'filter_form';
     $this->opt['smarty_filter_applied'] = 'filter_applied';
     $this->opt['form_submit'] = array('type' => 'button', 'text' => $lang_str['b_ok']);
 }
예제 #10
0
 /**
  *	constructor 
  *	
  *	initialize internal variables
  */
 function apu_filter()
 {
     global $lang_str;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['filter_name'] = '';
     $this->opt['on_change_callback'] = '';
     /* match any value containing the filter value */
     $this->opt['partial_match'] = true;
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* name of html form */
     $this->opt['form_name'] = '';
     $this->opt['smarty_form_label'] = 'filter_label';
     $this->opt['smarty_filter_applied'] = 'filter_applied';
     $this->opt['form_submit'] = array('type' => 'button', 'text' => $lang_str['b_search']);
     $this->opt['form_clear'] = array('type' => 'button', 'text' => $lang_str['b_clear_filter']);
 }
예제 #11
0
 /**
  *  constructor 
  *  
  *  initialize internal variables
  */
 function apu_refresh()
 {
     global $lang_str;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['refresh_name'] = '';
     $this->opt['on_change_callback'] = '';
     $this->opt['timeouts'] = array('15' => '15', '30' => '30', 'off' => 'Off');
     $this->opt['default_timeout'] = 'off';
     $this->opt['reset_to_default'] = true;
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* name of html form */
     $this->opt['form_name'] = '';
     $this->opt['form_submit'] = array('type' => 'button', 'text' => $lang_str['b_ok']);
     $this->opt['smarty_url_refresh_arr'] = "refresh_urls";
     $this->opt['smarty_refresh_timeout'] = "refresh_timeout";
 }
예제 #12
0
 function apu_lang_select()
 {
     global $lang_str;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['use_charset_only'] = 'utf-8';
     $this->opt['save_to_user_attr'] = false;
     $this->opt['save_to_cookie'] = true;
     /* message on attributes update */
     $this->opt['msg_update']['short'] =& $lang_str['msg_changes_saved_s'];
     $this->opt['msg_update']['long'] =& $lang_str['msg_changes_saved_l'];
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     /* name of html form */
     $this->opt['form_name'] = '';
 }
예제 #13
0
 /**
  *	constructor 
  *	
  *	initialize internal variables
  */
 function apu_sorter()
 {
     global $lang_str;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['sorter_name'] = '';
     $this->opt['default_sort_col'] = '';
     $this->opt['desc_order_by_default'] = false;
     $this->opt['on_change_callback'] = '';
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* name of html form */
     $this->opt['form_name'] = '';
     $this->opt['smarty_vars'] = 'url_sort';
     $this->opt['smarty_order'] = 'sorter_order_by';
     $this->opt['smarty_dir'] = 'sorter_dir';
     $this->opt['form_submit'] = array('type' => 'button', 'text' => $lang_str['b_search']);
 }
예제 #14
0
 function apu_acl()
 {
     global $lang_str;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['allow_edit'] = false;
     $this->opt['redirect_on_update'] = "";
     /* message on attributes update */
     $this->opt['msg_update']['short'] =& $lang_str['msg_acl_updated_s'];
     $this->opt['msg_update']['long'] =& $lang_str['msg_acl_updated_l'];
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     /* name of html form */
     $this->opt['form_name'] = '';
     $this->opt['smarty_acl'] = 'acl';
     $this->opt['smarty_acl_control'] = 'acl_control';
 }
예제 #15
0
 function apu_send_im()
 {
     global $lang_str, $sess_lang, $config;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['im_length'] = $config->im_length;
     $this->opt['show_wait_win'] = true;
     $this->opt['wait_win_url'] = "im_sending.php";
     /* message on attributes update */
     $this->opt['msg_send']['short'] =& $lang_str['msg_im_send_s'];
     $this->opt['msg_send']['long'] =& $lang_str['msg_im_send_l'];
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     /* name of html form */
     $this->opt['form_name'] = '';
     $this->opt['form_submit'] = array('type' => 'image', 'text' => $lang_str['b_send'], 'src' => get_path_to_buttons("btn_send.gif", $sess_lang));
 }
예제 #16
0
 /**
  *	constructor 
  *	
  *	initialize internal variables
  */
 function apu_attr_sel_grp()
 {
     global $lang_str;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['select_name'] = null;
     $this->opt['initial_selected_grp'] = "general";
     /* message on attributes update */
     $this->opt['msg_update']['short'] =& $lang_str['msg_changes_saved_s'];
     $this->opt['msg_update']['long'] =& $lang_str['msg_changes_saved_l'];
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     /* name of html form */
     $this->opt['form_name'] = '';
     $this->opt['smarty_groups'] = 'attr_groups';
     $this->opt['smarty_sel_group'] = 'attr_selected_group';
 }
예제 #17
0
 /**
  *	constructor 
  *	
  *	initialize internal variables
  */
 function apu_domain_admin()
 {
     global $lang_str, $sess_lang;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['get_list_of_domains'] = true;
     /* message on attributes update */
     $this->opt['msg_update']['short'] =& $lang_str['msg_changes_saved_s'];
     $this->opt['msg_update']['long'] =& $lang_str['msg_changes_saved_l'];
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     /* name of html form */
     $this->opt['form_name'] = '';
     $this->opt['smarty_assigned_domains'] = 'assigned_domains';
     $this->opt['smarty_unassigned_domains'] = 'unassigned_domains';
     $this->opt['form_submit'] = array('type' => 'image', 'text' => $lang_str['b_find'], 'src' => get_path_to_buttons("btn_find.gif", $sess_lang));
 }
예제 #18
0
 function apu_privileges()
 {
     global $lang_str;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['disabled_privileges'] = array();
     $this->opt['redirect_on_update'] = "";
     /* message on attributes update */
     $this->opt['msg_update']['short'] =& $lang_str['msg_privileges_updated_s'];
     $this->opt['msg_update']['long'] =& $lang_str['msg_privileges_updated_l'];
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     /* name of html form */
     $this->opt['form_name'] = 'f_priv';
     $this->opt['smarty_groups'] = 'grp';
     $this->opt['smarty_enabled_privileges'] = 'en_priv';
     $this->opt['smarty_allow_change'] = 'allow_change_privileges';
 }
 /**
  *  constructor 
  *  
  *  initialize internal variables
  */
 function apu_domain_dns_validator()
 {
     global $lang_str;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['prohibited_domain_names'] = array();
     $this->opt['set_session_var'] = "";
     $this->opt['redirect_on_update'] = "";
     /* message on attributes update */
     $this->opt['msg_update']['short'] =& $lang_str['msg_changes_saved_s'];
     $this->opt['msg_update']['long'] =& $lang_str['msg_changes_saved_l'];
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     /* name of html form */
     $this->opt['form_name'] = '';
     $this->opt['smarty_srv_host'] = 'srv_host';
     $this->opt['smarty_srv_port'] = 'srv_port';
 }
예제 #20
0
 function apu_usrloc()
 {
     global $lang_str, $sess_lang;
     parent::apu_base_class();
     /* set default values to $this->opt */
     /* message on contact delete */
     $this->opt['msg_delete']['short'] =& $lang_str['msg_loc_contact_deleted_s'];
     $this->opt['msg_delete']['long'] =& $lang_str['msg_loc_contact_deleted_l'];
     /* message on contact add */
     $this->opt['msg_add']['short'] =& $lang_str['msg_loc_contact_added_s'];
     $this->opt['msg_add']['long'] =& $lang_str['msg_loc_contact_added_l'];
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     /* name of html form */
     $this->opt['form_name'] = '';
     $this->opt['smarty_usrloc'] = 'usrloc';
     $this->opt['form_submit'] = array('type' => 'image', 'text' => $lang_str['b_add'], 'src' => get_path_to_buttons("btn_add.gif", $sess_lang));
 }
예제 #21
0
 function apu_voicemail()
 {
     global $lang_str, $config, $sess_lang;
     parent::apu_base_class();
     $this->opt['use_radio_button'] = false;
     $this->opt['max_file_size'] = 1048576;
     //1MB
     /* message on attributes update */
     $this->opt['msg_upload']['short'] =& $lang_str['msg_greeting_stored_s'];
     $this->opt['msg_upload']['long'] =& $lang_str['msg_greeting_stored_l'];
     $this->opt['msg_delete']['short'] =& $lang_str['msg_greeting_deleted_s'];
     $this->opt['msg_delete']['long'] =& $lang_str['msg_greeting_deleted_l'];
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     $this->opt['smarty_download_url'] = 'vm_download_url';
     /* name of html form */
     $this->opt['form_name'] = '';
     $this->opt['form_submit'] = array('type' => 'image', 'text' => $lang_str['b_upload_greeting'], 'src' => get_path_to_buttons("btn_upload_greeting.gif", $sess_lang));
 }
 function apu_forgotten_password()
 {
     global $config, $lang_str;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['domain'] = $config->domain;
     $this->opt['mail_file_conf'] = "mail_forgot_password_conf.txt";
     $this->opt['mail_file_pass'] = "******";
     $this->opt['fully_qualified_name'] = $config->fully_qualified_name_on_login;
     $this->opt['auth_class'] = 'Auth';
     /* message on attributes update */
     $this->opt['msg_conf_send']['short'] =& $lang_str['msg_pass_conf_sended_s'];
     $this->opt['msg_conf_send']['long'] =& $lang_str['msg_pass_conf_sended_l'];
     $this->opt['msg_pass_send']['short'] =& $lang_str['msg_password_sended_s'];
     $this->opt['msg_pass_send']['long'] =& $lang_str['msg_password_sended_l'];
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     /* name of html form */
     $this->opt['form_name'] = '';
     $this->opt['form_submit'] = array('type' => 'image', 'text' => $lang_str['b_forgot_pass_submit'], 'src' => get_path_to_buttons("btn_get_pass.gif", $_SESSION['lang']));
 }
예제 #23
0
 /**
  *	constructor 
  *	
  *	initialize internal variables
  */
 function apu_domain_list()
 {
     global $lang_str, $sess_lang;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['script_edit'] = 'domain_edit.php';
     $this->opt['script_create'] = 'domain_edit.php';
     $this->opt['script_layout'] = 'domain_layout.php';
     $this->opt['script_attributes'] = 'domain_attributes.php';
     $this->opt['only_domains'] = null;
     $this->opt['perm_display_deleted'] = false;
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     /* name of html form */
     $this->opt['form_name'] = '';
     /* pager */
     $this->opt['smarty_pager'] = 'pager';
     $this->opt['smarty_domains'] = 'domains';
     $this->opt['smarty_url_new_domain'] = 'url_new_domain';
     $this->opt['form_submit'] = array('type' => 'image', 'text' => $lang_str['b_find'], 'src' => get_path_to_buttons("btn_find.gif", $sess_lang));
 }
예제 #24
0
 function apu_login()
 {
     global $lang_str, $config;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['fully_qualified_name_on_login'] = $config->fully_qualified_name_on_login;
     $this->opt['redirect_on_login'] = '******';
     $this->opt['check_admin_privilege'] = false;
     $this->opt['cookie_domain'] = null;
     $this->opt['xxl_redirect_after_login'] = false;
     $this->opt['auth_class'] = 'Auth';
     $this->opt['unset_lang_on_login'] = true;
     $this->opt['set_lang_attr'] = true;
     /* message on attributes update */
     $this->opt['msg_logout']['short'] =& $lang_str['msg_logout_s'];
     $this->opt['msg_logout']['long'] =& $lang_str['msg_logout_l'];
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     /* name of html form */
     $this->opt['form_name'] = 'login_form';
     $this->opt['form_submit'] = array('type' => 'image', 'text' => $lang_str['b_login'], 'src' => get_path_to_buttons("btn_login.gif", $_SESSION['lang']));
 }
예제 #25
0
 /**
  *	constructor 
  *	
  *	initialize internal variables
  */
 function apu_customers()
 {
     global $lang_str;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['redirect_on_create'] = "";
     $this->opt['redirect_on_update'] = "";
     $this->opt['redirect_on_delete'] = "";
     /* message on attributes update */
     $this->opt['msg_update']['short'] =& $lang_str['msg_customer_updated_s'];
     $this->opt['msg_update']['long'] =& $lang_str['msg_customer_updated_l'];
     $this->opt['msg_delete']['short'] =& $lang_str['msg_customer_deleted_s'];
     $this->opt['msg_delete']['long'] =& $lang_str['msg_customer_deleted_l'];
     $this->opt['msg_add']['short'] =& $lang_str['msg_customer_added_s'];
     $this->opt['msg_add']['long'] =& $lang_str['msg_customer_added_l'];
     $this->opt['err_owning_domains'] =& $lang_str['err_customer_own_domains'];
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     /* name of html form */
     $this->opt['form_name'] = '';
     $this->opt['smarty_customers'] = 'customers';
     $this->opt['smarty_pager'] = 'pager';
 }
예제 #26
0
 function apu_registration()
 {
     global $lang_str, $config;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['register_in_domain'] = null;
     $this->opt['create_new_domain'] = null;
     $this->opt['allowed_domains'] = null;
     $this->opt['pre_selected_domain'] = null;
     $this->opt['require_confirmation'] = null;
     $this->opt['choose_passw'] = true;
     $this->opt['admin_priv'] = false;
     $this->opt['terms_file'] = null;
     $this->opt['mail_file'] = 'mail_registered_by_admin.txt';
     $this->opt['mail_file_conf'] = null;
     $this->opt['mail_file_domain'] = 'mail_register_domain.txt';
     $this->opt['mail_file_domain_conf'] = 'mail_register_domain_conf.txt';
     $this->opt['login_script'] = '';
     $this->opt['redirect_on_register'] = "";
     $this->opt['confirmation_script'] = "";
     $this->opt['admin_login'] = false;
     $this->opt['set_lang_attr'] = null;
     /* alias generation */
     $this->opt['create_numeric_alias'] = $config->create_numeric_alias_to_new_users;
     /* message on attributes update */
     $this->opt['msg_update']['short'] =& $lang_str['msg_changes_saved_s'];
     $this->opt['msg_update']['long'] =& $lang_str['msg_changes_saved_l'];
     /*** names of variables assigned to smarty ***/
     /* array containing names of attributes */
     $this->opt['smarty_attributes'] = 'attributes';
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     /* name of html form */
     $this->opt['form_name'] = '';
     /* registered sip address */
     $this->opt['smarty_reg_adress'] = 'reg_sip_address';
     $this->opt['smarty_req_conf'] = 'require_confirmation';
     $this->opt['smarty_uname_assign_mode'] = 'uname_assign_mode';
 }
예제 #27
0
 /**
  *	constructor 
  *	
  *	initialize internal variables
  */
 function apu_domain_layout()
 {
     global $lang_str, $config;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['layout_files'] = array();
     $this->opt['text_files'] = array();
     $this->opt['tmp_file'] = $config->smarty_compile_dir . "tmp.ini";
     $this->opt['nr_backups'] = $config->backup_versions_nr;
     /* message on attributes update */
     $this->opt['msg_update']['short'] =& $lang_str['msg_changes_saved_s'];
     $this->opt['msg_update']['long'] =& $lang_str['msg_changes_saved_l'];
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     /* name of html form */
     $this->opt['form_name'] = '';
     $this->opt['smarty_layout_files'] = 'layout_files';
     $this->opt['smarty_text_files'] = 'text_files';
     $this->opt['smarty_backup_files'] = 'backup_files';
     $this->opt['smarty_fileinfo'] = 'fileinfo';
     $this->opt['smarty_url_back_to_default'] = 'url_back_to_default';
 }
예제 #28
0
 /**
  *	constructor 
  *	
  *	initialize internal variables
  */
 function apu_attr_types()
 {
     global $lang_str, $config;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['type_spec_script'] = 'edit_type_spec.php';
     $this->opt['form_submit_extended'] = array('type' => 'image', 'text' => $lang_str['b_extended_settings'], 'src' => get_path_to_buttons("btn_extended_settings.gif", $_SESSION['lang']));
     $this->opt['dtdfile'] = $config->root_uri . $_SERVER["PHP_SELF"] . "?get_dtd";
     /* message on attributes update */
     $this->opt['msg_update']['short'] =& $lang_str['msg_changes_saved_s'];
     $this->opt['msg_update']['long'] =& $lang_str['msg_changes_saved_l'];
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     /* name of html form */
     $this->opt['form_name'] = '';
     /* pager */
     $this->opt['smarty_pager'] = 'pager';
     $this->opt['smarty_attrs'] = 'attrs';
     $this->opt['smarty_groups'] = 'groups';
     $this->opt['smarty_url_toggle_groups'] = 'url_toggle_groups';
     $this->opt['smarty_url_export_sql'] = 'url_export_sql';
     $this->opt['smarty_url_export_xml'] = 'url_export_xml';
     $this->opt['smarty_show_groups'] = 'show_groups';
 }
예제 #29
0
 function apu_attributes()
 {
     global $lang_str, $config;
     parent::apu_base_class();
     /* with which attributes we will work, if this array is ampty we will work with all defined attributes */
     $this->opt['attributes'] = array();
     $this->opt['exclude_attributes'] = array();
     $this->opt['attrs_group'] = null;
     $this->opt['error_messages'] = array();
     $this->opt['validate_funct'] = null;
     $this->opt['attrs_options'] = array();
     $this->opt['validate_js_funct'] = null;
     $this->opt['attrs_kind'] = 'user';
     $this->opt['redirect_on_update'] = "";
     $this->opt['perm'] = 'user';
     $this->opt['on_default_callback'] = null;
     $this->opt['on_update_callback'] = null;
     $this->opt['allow_edit'] = true;
     /* message on attributes update */
     $this->opt['msg_update']['short'] =& $lang_str['msg_changes_saved_s'];
     $this->opt['msg_update']['long'] =& $lang_str['msg_changes_saved_l'];
     /*** names of variables assigned to smarty ***/
     /* array containing names of attributes */
     $this->opt['smarty_attributes'] = 'attributes';
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     /* name of html form */
     $this->opt['form_name'] = '';
 }
예제 #30
0
 /**
  *	constructor 
  *	
  *	initialize internal variables
  */
 function apu_domain()
 {
     global $lang_str, $sess_lang, $config;
     parent::apu_base_class();
     /* set default values to $this->opt */
     $this->opt['redirect_on_disable'] = "";
     $this->opt['redirect_on_update'] = "";
     $this->opt['redirect_on_delete'] = "";
     $this->opt['preselected_customer'] = null;
     $this->opt['prohibited_domain_names'] = array();
     $this->opt['no_domain_name_e'] = $lang_str['no_domain_name_is_set'];
     $this->opt['perm_purge'] = false;
     $this->opt['perm_undelete'] = false;
     $this->opt['form_add_submit'] = array('type' => 'image', 'text' => $lang_str['b_add'], 'src' => get_path_to_buttons("btn_add.gif", $sess_lang));
     /* messages */
     $this->opt['msg_delete']['short'] =& $lang_str['msg_domain_deleted_s'];
     $this->opt['msg_delete']['long'] =& $lang_str['msg_domain_deleted_l'];
     $this->opt['msg_undelete']['short'] =& $lang_str['msg_domain_undeleted_s'];
     $this->opt['msg_undelete']['long'] =& $lang_str['msg_domain_undeleted_l'];
     $this->opt['msg_purge']['short'] =& $lang_str['msg_domain_purged_s'];
     $this->opt['msg_purge']['long'] =& $lang_str['msg_domain_purged_l'];
     /*** names of variables assigned to smarty ***/
     /* form */
     $this->opt['smarty_form'] = 'form';
     /* smarty action */
     $this->opt['smarty_action'] = 'action';
     /* name of html form */
     $this->opt['form_name'] = '';
     $this->opt['smarty_id'] = 'dom_id';
     $this->opt['smarty_dom_names'] = 'dom_names';
     $this->opt['smarty_customers'] = 'customers';
     $this->opt['smarty_admins'] = 'admins';
 }