Пример #1
0
 function __construct()
 {
     parent::__construct();
     if (!$this->ion_auth->is_admin()) {
         if (false === in_array($this->router->method, ['get_raking_chart_data', 'change_ca_panel_status'])) {
             show_404();
         }
     }
     /**
      * redirect home page
      * @author Tigran Makaryan
      */
     $this->load->helper('authentication');
     if (!$this->input->post("api")) {
         ajaxLogout($this->ion_auth->logged_in());
     }
     $this->load->library('helpers');
     $this->load->library('session');
     $this->data['title'] = 'System Settings';
     $this->data['checked_controllers'] = array('dashboard', 'batches', 'measure', 'assess', 'research', 'brand', 'customer', 'selenium_testing', 'refresh_dostats_view', 'create_dostats_view', 'dostats_view_exists');
     $this->data['admin_controllers'] = array('system', 'admin_customer', 'admin_editor', 'admin_tag_editor', 'site_crawler');
     $this->load->model('imported_data_parsed_model');
     $this->load->model('settings_model');
     $this->load->library('form_validation');
     $this->ion_auth->add_auth_rules(array('update_urls_threading' => true, 'check_urls_threading' => true, 'stopChecking' => true, 'stopChecking_new' => true, 'delete_load_urls' => true, 'system_uploadmatchurls_update' => true, 'filters' => true, 'generate_filters' => true, 'remove_batches_combination' => true, 'start_trendline_dates' => true, 'get_trendline_dates_status' => true, "get_matching_urls_new" => true, 'resume_urls_threading' => true, 'update_urls_threading_new' => true, 'clear_imported_data_parsed' => true, 'getKeywords' => true, 'getCategoriesWithIdentity' => true, 'filter_order' => true, 'ajax_sort_filters' => true, 'ajax_sort_filters_groups' => true, 'ajax_reset_filters' => true, 'send_workflow_response' => true, 'run_background' => true, 'update_filters_groups' => true, 'delete_filters_groups' => true, 'getFilterGroupById' => true, 'reset_groups' => true, 'system_brand_rankings' => true, 'keyword_cron_jobs' => true, 'keyword_cron_jobs_ajax' => true, 'keyword_group_cron_jobs_ajax' => true, 'keyword_group_cron_jobs_delete' => true, 'keyword_group_cron_jobs_delete_by_id' => true, 'keyword_group_cron_jobs_run_by_id' => true, 'keyword_group_cron_job_info' => true, 'keyword_group_cron_jobs_add' => true, 'product_cron_jobs' => true, 'product_cron_jobs_log' => true, 'ranking_data_jobs' => true, 'ranking_data_jobs_enable' => true, 'ranking_data_jobs_stats' => true, 'upload_ranking' => true, 'handle_ranking' => true, 'getRanking' => true, 'update_sites_match' => true, 'create_group' => true, 'export_filters' => true, 'import_filters' => true, 'upload_filters' => true, 'getAvailableDatesForSite' => true, 'getAvailableBrandsForSite' => true, 'deleteRankingData' => true, 'getDashboardSummary' => true, 'getGoogleShoppingReport' => true, 'saveBrandGroup' => true, 'getBrandGroup' => true, 'getBrandsInGroup' => true, 'removeBrandFromGroup' => true, 'getBrandingBrandsForSite' => true, 'updateBrandGroup' => true, 'removeBrandGroup' => true, 'removeNotifyEmail' => true, 'matches' => true, 'upload_keyword_groups' => true, 'handle_keyword_groups' => true, 'get_raking_chart_data' => true, 'getBrandingTableColumns' => true, 'save_ranking_table_settings' => true, 'user_scorecard_settings' => true, 'resetUserScorecardSettings' => true, 'changeBatchSorting' => true, 'delete_keywords_list' => true, 'search_terms_groups_export' => true, 'search_terms_groups_import' => true, 'getAvailableKeywordGroup' => true, 'system_updatemedian' => true, 'charts_get_ranking_view_data' => true, 'getAccessAndSecretKey' => true, 'work_order' => true, 'get_work_order' => true, 'delete_work_order' => true, 'keyword_cron_jobs_log' => true, 'keyword_cron_jobs_history' => true, 'keyword_cron_job_curl_log' => true, 'keyword_cron_job_curl_log_result' => true, 'getSitebyBrandId' => true, 'get_associated_keywords' => true, 'add_new_ranking_brand_group' => true, 'add_brand_to_group' => true, 'add_keyword_server' => true, 'edit_keyword_server' => true, 'delete_keyword_server' => true, 'keyword_timing' => true, 'emailRecipients' => true, 'GetKeywordsAndBrandsByItsGroups' => true, 'changeSortingField' => true, 'batch_repair' => true, 'comparison_batches' => true, 'misc' => true, 'pending_batches' => true, 'supplier_batches' => true, 'set_event_status' => true, 'comparison_batches' => true, 'alert_data_by_id' => true, 'ajaxGetBatches' => true, 'ajaxStartImport' => true, 'uploadTraffic' => true, 'traffic_data_cache' => true, 'traffic_data_cache_delete' => true, 'refresh_dostats_view' => true, 'create_dostats_view' => true, 'dostats_view_exists' => true, 'alerts' => true, 'alert_log_json' => true, 'addLogo' => true, 'deleteLogo' => true, 'getLogo' => true, 'get_all_batches_and_sites' => true, 'ajax_update_batche_owner' => true, 'countries' => true, 'getAllCountry' => true, 'deletCountry' => true, 'sites_json' => true, 'suppliers' => true, 'addEdditTrafficServer' => true, 'deleteTrafficServer' => true, 'prepareUrlsForRemoving' => true, 'removeUrlsByChronicle' => true, 'system_uploadmatchspecifications' => true, 'check_specifications' => true, 'filters_to_display' => true, 'filters_to_display_save' => true, 'upload_vad_icon' => true, 'delete_vad_icon' => true, 'get_vad_filters' => true, 'visual_action_display_save_settings' => true, 'crawler_log' => true, 'crawler_log_clear' => true, 'remove_from_queue' => true, 'getOOSDetailedChart' => true, 'change_ca_panel_status' => true, 'manage_chronicles' => true, 'virtualChronicle' => true, 'miscUploadVALogo' => true, 'miscRemoveVALogo' => true, 'getImageUploadAndDeleteState' => true, 'changeImageUploadAndDeleteState' => true, 'batch_management' => true, 'get_batch_status' => true));
 }
Пример #2
0
 function __construct()
 {
     parent::__construct();
     $this->load->helper('authentication');
     ajaxLogout($this->ion_auth->logged_in());
     $this->load->model('user_groups_model');
     $this->ion_auth->add_auth_rules(['home' => true]);
 }
Пример #3
0
 function __construct()
 {
     parent::__construct();
     $this->load->helper('authentication');
     ajaxLogout($this->ion_auth->logged_in());
     $this->load->model('user_groups_model');
     $this->data['title'] = 'Alert';
     $this->ion_auth->add_auth_rules(['index' => true, 'save' => true, 'edit' => true, 'delete' => true, 'manage' => true, 'manage_alerts' => true, 'test' => true, 'test2' => true, 'send' => true, 'convert' => true, 'recipient_add' => true, 'recipient_manage' => true, 'recipient_delete' => true, 'get_brands_autocomplete' => true, 'get_alerts_tabs' => true, 'get_recipients_list' => true, 'get_group_recipients_list' => true, 'refresh_recipients_list' => true, 'refresh_recipients_groups_list' => true, 'get_default_recipient' => true, 'add_recipient_group' => true, 'update_recipient_group' => true, 'delete_recipient_group' => true, 'remove_recipient' => true, 'remove_recipient_from_group' => true, 'add_recipients_to_group' => true, 'revert_recipients_group_changes' => true, 'create_recipient' => true, 'update_recipient' => true, 'get_contacts' => true, 'get_contacts_popup' => true, 'get_contacts_list_popup' => true, 'get_contact_groups_list_popup' => true, 'get_contact_in_group_list_popup' => true, 'add_recipient_to_group_popup' => true, 'UpdateRecipientsList' => true, 'get_selected_brands' => true, 'sendseslib' => true, 'sendgrid' => true, 'getAlertsBySearchTermGroup' => true, 'update_findable' => true, 'update_dashboard' => true, 'createAlertPreviewSend' => true, 'get_alerts_count' => true, 'update_alert_recipients' => true, 'check_alert_recipients' => true, 'AddReportToDashboard' => true, 'GetRecipientsListBySearchTerm' => true]);
 }
Пример #4
0
 function __construct()
 {
     parent::__construct();
     $this->load->helper('authentication');
     ajaxLogout($this->ion_auth->logged_in());
     $this->data['title'] = 'Ppt Generation';
     $this->ion_auth->add_auth_rules(array('index' => true, 'charts' => true, 'add' => true, 'remove' => true, 'clear' => true, 'sort' => true, 'generate' => true));
     $this->enableComposerAutoloader();
 }
Пример #5
0
 function __construct()
 {
     parent::__construct();
     $this->enableComposerAutoloader();
     $this->load->helper('authentication');
     $this->load->library('session');
     ajaxLogout($this->ion_auth->logged_in());
     $this->data['title'] = 'Dashboard';
     $this->ion_auth->add_auth_rules(array('index' => true, 'update_dashboard_alert_positions' => true, 'get_popup_data' => true, 'get_popup_table_data' => true, 'update_popup_data' => true, 'add_batch_combination' => true, 'remove_batch_from_dashboard' => true, 'remove_dashboard_block' => true));
 }
Пример #6
0
 public function __construct()
 {
     parent::__construct();
     $this->load->helper('authentication');
     if (!$this->input->post("api")) {
         ajaxLogout($this->ion_auth->logged_in());
     }
     $this->load->model('scorecard_model');
     $this->ion_auth->add_auth_rules(array('get_sites' => true, 'get_brands' => true, 'get_dates' => true, 'get_limited_dates' => true, 'getTermRanking' => true, 'getOSRReport' => true, 'getBrandGroup' => true, 'getPage2HighPotential' => true, 'getOSRatiosReport' => true, 'getRankingOverview' => true, 'getZeroReviews' => true, 'getCustomerQa' => true, 'getNegativeReviews' => true, 'getComparativePricing' => true, 'getPriceSensitivity' => true, 'changeSelectedVariant' => true));
 }
Пример #7
0
 function __construct()
 {
     parent::__construct();
     $this->load->helper('authentication');
     if (!$this->input->post("api")) {
         if (!$this->ion_auth->logged_in()) {
             $this->session->set_userdata('redirect_after_login_url', base_url(trim($_SERVER['REQUEST_URI'], '/')));
         }
         ajaxLogout($this->ion_auth->logged_in());
     }
     $this->ion_auth->add_auth_rules(array('index' => true, 'partial' => true, 'vad_product' => true));
 }
Пример #8
0
 function __construct()
 {
     parent::__construct();
     /**
      * redirect home page
      * @author Tigran Makaryan
      */
     $this->load->helper('authentication');
     ajaxLogout($this->ion_auth->logged_in());
     $this->load->library('form_validation');
     $this->data['title'] = 'Admin Customer Setting';
 }
Пример #9
0
 function __construct()
 {
     parent::__construct();
     $this->load->helper('authentication');
     if (!$this->input->post("api")) {
         ajaxLogout($this->ion_auth->logged_in());
     }
     $this->load->helper('csv');
     $this->load->library('ion_auth');
     $this->load->library('session');
     $this->data['title'] = 'Export';
     $this->ion_auth->add_auth_rules(['exportScorecardRanking' => true, 'exportOSRData' => true, 'exportPrSenData' => true, 'exportComPrData' => true, 'exportProductListData' => true, 'exportNegativeReviews' => true, 'exportZeroReviews' => true, 'exportCustomerQa' => true, 'exportPage1ShareOfShelf' => true]);
 }
Пример #10
0
 function __construct()
 {
     parent::__construct();
     $this->enableComposerAutoloader();
     $this->load->helper('authentication');
     if (!$this->input->post("api")) {
         ajaxLogout($this->ion_auth->logged_in());
     }
     $this->load->library('ion_auth');
     $this->load->library('session');
     $this->data['title'] = 'Report';
     $this->ion_auth->add_auth_rules(array('scorecardOverview' => true, 'getPricingDetails' => true, 'getProductRatingsChartData' => true, 'getLastAvailableDatesViewOos' => true, 'getPricingReportChartData' => true, 'getSavedSelectionsList' => true, 'getSavedSelectionById' => true, 'addUpdateSavedSelection' => true, 'removeSavedSelection' => true, 'getSavedSelectionOptionsById' => true, 'getDefaultReport' => true));
 }
Пример #11
0
 function __construct()
 {
     parent::__construct();
     $this->enableComposerAutoloader();
     $this->load->helper('authentication');
     if (!$this->input->post("api")) {
         ajaxLogout($this->ion_auth->logged_in());
     }
     $this->load->library('ion_auth');
     $this->load->library('session');
     $this->load->model('product_model');
     $this->data['title'] = 'Export';
     $this->ion_auth->add_auth_rules(array('getProductList' => true, 'createProductList' => true, 'editProductList' => true, 'deleteProductList' => true, 'importProductAssociation' => true, 'getProductListAssociations' => true, 'deleteAssociationList' => true, 'deleteProductListItems' => true, 'getProductListItems' => true, 'addProductToProductLists' => true, 'uploadCsvFile' => true, 'getProductListsJson' => true, 'getProductsSponsoredLinks' => true, 'getAssociationDetails' => true, 'updateAssociationList' => true, 'updateProductList' => true, 'updateSellerCategory' => true, 'removeProductFromAssociationList' => true, 'checkAssociationProduct' => true, 'addAssociation' => true, 'clearAssocItem' => true, 'exportAssociations' => true, 'uploadDailyTrafficCron' => true));
 }
Пример #12
0
 function __construct()
 {
     parent::__construct();
     /**
      * redirect home page
      * @author Tigran Makaryan
      */
     $this->load->helper('authentication');
     ajaxLogout($this->ion_auth->logged_in());
     $this->load->library('form_validation');
     $this->load->library('helpers');
     $this->data['title'] = 'Customer Settings';
     $this->ion_auth->add_auth_rules(array('saveTimezone' => true, 'uploadUserProfilePhoto' => true, 'removeUserProfilePhoto' => true));
 }
Пример #13
0
 public function setPage1HPSettings()
 {
     ajaxLogout($this->ion_auth->logged_in());
     $sortField = $this->input->post('sort');
     $view = '1ssv_sort';
     $this->load->library('RankingTable');
     $fields = $this->rankingtable->getColumnSettings($view);
     array_walk($fields, function (&$item, $key, $selectedField) {
         if ($key === $selectedField) {
             $item = 'true';
         } else {
             $item = 'false';
         }
     }, $sortField);
     $fields['isEnabledOther'] = intval($this->input->post('isEnabledOther'));
     $this->load->model('user_summary_settings', 'uss');
     $res = $this->rankingtable->save_ranking_table_settings($view, $fields);
     return $this->jsonResponse(['success' => $res]);
 }
Пример #14
0
 function __construct()
 {
     parent::__construct();
     /**
      * redirect home page
      * @author Tigran Makaryan
      */
     $this->load->model('users_model');
     $this->load->helper('authentication');
     $this->load->helper('url');
     if (!$this->input->post("api")) {
         if (!$this->ion_auth->logged_in()) {
             if ($this->router->fetch_method() == 'brand_report_ranking') {
                 $action = $this->uri->segment(3);
                 $id = $this->uri->segment(4);
                 if ($action == 'alert' && !empty($id)) {
                     $this->session->set_userdata('redirect_after_login_url', base_url(trim($_SERVER['REQUEST_URI'], '/')));
                 } elseif (!$action && !$id) {
                     $this->session->set_userdata('redirect_after_login_url', base_url(trim($_SERVER['REQUEST_URI'], '/')));
                 } elseif ($action == 'show_alert' && !empty($id)) {
                     $this->session->set_userdata('redirect_after_login_url', base_url(trim($_SERVER['REQUEST_URI'], '/')));
                 }
             }
         }
         if ($this->router->fetch_class() . "/" . $this->router->fetch_method() == 'assess/pending_edits' && !empty($this->users_model->getUsersData($this->ion_auth->get_user_id())[0]->is_supplier)) {
             show_404();
         }
         if (strpos(uri_string(), 'assess/pending_edits') === FALSE) {
             ajaxLogout($this->ion_auth->logged_in());
         }
     }
     $this->load->library('form_validation');
     $this->load->library('helpers');
     $this->number_of_items = 0;
     $this->data['title'] = 'Assess';
     $this->load->model('imported_data_parsed_model');
     $this->load->model('keywords_model');
     $this->ion_auth->add_auth_rules(array('get_batches_summary_combinations' => true, 'delete_batches_summary_combinations_item' => true, 'update_batches_summary_combinations_item' => true, 'getSubsetsWithDatesList' => true, 'getSubsetsExcludeOwnCustomer' => true, 'index' => true, 'research_url' => true, 'getBatchType' => true, 'get_assess_info' => true, 'get_board_view_snap' => true, 'count_trendline_dates' => true, 'compare' => true, 'assess_save_columns_state' => true, 'getbatchvalues' => true, 'deleteSecondaryMatch' => true, 'getColumns' => true, 'getCategoriesByBatch' => true, 'get_filters' => true, 'save_filters_combo' => true, 'remove_filter_combo' => true, 'checkImportProcess' => true, 'checkImportFailedSubsetsUrls' => true, 'getBatchesExcludeOwnCustomer' => true, 'run_background' => true, 'count_trendline_dates' => true, 'getDatesByCombo' => true, 'brand_report_ranking' => true, 'updateRankingViewForUser' => true, 'reset_user_order_filter' => true, 'test' => true, 'save_recent_query_params' => true, 'get_recent_query_params' => true, 'save_saved_query_params' => true, 'get_saved_query_params' => true, 'remove_saved_query' => true, 'update_saved_query' => true, 'string_diff' => true, 'diff_count' => true, 'other_string_diff' => true, 'getBrandsByBatch' => true, 'getComboBrandsByBatch' => true, 'find_same' => true, 'keywords_list' => true, 'action_report' => true, 'getNotEmptyBrandsByBatch' => true, 'get_brands_and_filters' => true, 'chartsPPTPopup' => true, 'save_filters_values_view_conf' => true, 'get_recent_query_params_by_id' => true, 'get_saved_query_params_by_id' => true, 'ajaxgetNotEmptyBrandsByBatch' => true, 'store_insight_actions' => true, 'recieve_insight_actions' => true, 'store_favorite_insight_actions' => true, 'recieve_favorite_insight_actions' => true, 'setChildes' => true, 'pending_edits' => true, 'sendmail_create_work_order' => true, 'work_order_history' => true, 'delete_recent_query_params' => true, 'alerts_support_widget_get_template' => true, 'alerts_support_widget_add' => true, 'remove_favorite_insight_actions' => true, 'update_favorite_insight_actions' => true, 'convertFilterItems' => true, 'exportBrandsAndFilters' => true, 'reset_user_order' => true, 'get_alert_by_id' => true, 'getFamilyNamesList' => true, 'getBrandsToAddInFamily' => true, 'saveFamily' => true, 'deleteFamily' => true, 'getBrandsInFamily' => true, 'removeBrandsFfromFamily' => true, 'getSearchGroups' => true, 'string_diff2' => true, 'checkSuperFilters' => true, 'getTableColumns' => true, 'getAlertOptions' => true, 'changeFindabilityFilterPosition' => true, 'changeRankingTypesPosition' => true, 'hideScorecardTooltips' => true, 'uploadCSV_for_upload_content' => true, 'changeSorting' => true));
 }