Changeset 3082862
- Timestamp:
- 05/07/2024 10:39:41 PM (2 years ago)
- Location:
- real-estate-listing-realtyna-wpl/trunk
- Files:
-
- 6 edited
-
WPL.php (modified) (2 diffs)
-
global.php (modified) (1 diff)
-
libraries/property.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
views/activities/listing_gallery/main.php (modified) (1 diff)
-
views/backend/wpl/wpl_ajax.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
real-estate-listing-realtyna-wpl/trunk/WPL.php
r3080599 r3082862 5 5 * Description: WPL is a professional WordPress real estate plugin created by Realtyna. 6 6 * Author: Realtyna 7 * Version: 4.14. 97 * Version: 4.14.10 8 8 * Text Domain: real-estate-listing-realtyna-wpl 9 9 * Domain Path: /languages … … 28 28 */ 29 29 define('WPL_TEXTDOMAIN', 'real-estate-listing-realtyna-wpl'); 30 define('WPL_VERSION', '4.14. 9'); // WPL Version30 define('WPL_VERSION', '4.14.10'); // WPL Version 31 31 32 32 require WPL_ABSPATH.'config.php'; -
real-estate-listing-realtyna-wpl/trunk/global.php
r3080603 r3082862 1187 1187 return ['success'=> 0, 'message'=> 'Please use WPL PRO']; 1188 1188 } 1189 1190 1189 $current_url = wpl_global::get_full_url(); 1191 1190 $domain = wpl_global::domain($current_url); -
real-estate-listing-realtyna-wpl/trunk/libraries/property.php
r3080599 r3082862 393 393 if(wpl_global::zap_search_enabled()) 394 394 { 395 $this->rush_data['sort'] = [str_replace('p.', '', $this->orderby) => $this->order];395 $this->rush_data['sort'] = [str_replace('p.', '', str_replace('`', '', $this->orderby)) => $this->order]; 396 396 $this->rush_data['select'] = $this->select; 397 397 $this->rush_data['query'] = wpl_db::_prefix($query); -
real-estate-listing-realtyna-wpl/trunk/readme.txt
r3080599 r3082862 5 5 Requires at least: 4.7.0 6 6 Tested up to: 6.4.1 7 Stable tag: 4.14. 97 Stable tag: 4.14.10 8 8 Requires PHP: 7.4 9 Version: 4.14. 99 Version: 4.14.10 10 10 License: GPL-2.0-or-later 11 11 License URI: https://www.gnu.org/licenses/license-list.html#GPLv2 -
real-estate-listing-realtyna-wpl/trunk/views/activities/listing_gallery/main.php
r3080599 r3082862 49 49 } 50 50 51 /** Load Tag Styles **/ 51 $tags_str = apply_filters('wpl_activity_main_listing_gallery/tags/after', $tags_str, $this->current_property['data']); 52 52 $this->tags_styles($tags); 53 53 -
real-estate-listing-realtyna-wpl/trunk/views/backend/wpl/wpl_ajax.php
r3080599 r3082862 16 16 if ($function == 'install_package') $this->install_package(); 17 17 elseif ($function == 'check_addon_update') $this->check_addon_update(); 18 elseif ($function == 'update_package') $this->update_package();19 18 elseif ($function == 'save_realtyna_credentials') $this->save_realtyna_credentials(); 20 19 elseif ($function == 'check_envato_purchase_code') $this->check_envato_purchase_code(); … … 82 81 } 83 82 84 private function update_package()85 {86 // Check Nonce87 if (!wpl_security::verify_nonce(wpl_request::getVar('_wpnonce', ''), 'wpl_dashboard')) $this->response(array('success' => 0, 'message' => wpl_esc::return_html_t('The security nonce is not valid!')));88 89 $sid = wpl_request::getVar('sid', '');90 $prefix = explode(':', $sid);91 if (count($prefix) > 1) {92 $prefix = $prefix[0];93 } else {94 $prefix = '';95 }96 $tmp_directory = wpl_global::init_tmp_folder(str_replace('.', '_', $prefix));97 $dest = $tmp_directory . 'package.zip';98 99 $zip_file = wpl_global::get_web_page('https://billing.realtyna.com/index.php?option=com_rls&view=downloadables&domain=' . wpl_global::domain(wpl_global::get_full_url()) . '&task=download&sid=' . $sid . '&randomkey=' . rand(1, 100));100 101 if (!$zip_file) {102 $this->response(array(103 'success' => '0',104 'error' => wpl_esc::return_html_t('Error: #U202, Could not download the update package!'),105 'message' => ''106 ));107 }108 if (!wpl_file::write($dest, $zip_file)) {109 $this->response(array(110 'success' => '0',111 'error' => wpl_esc::return_html_t('Error: #U203, Could not create the update file!'),112 'message' => ''113 ));114 }115 if (!wpl_global::zip_extract($dest, $tmp_directory)) {116 $this->response(array(117 'success' => '0',118 'error' => wpl_esc::return_html_t('Error: #U204, Could not extract the update file!'),119 'message' => ''120 ));121 }122 123 $script_file = $tmp_directory . 'installer.php';124 if (!wpl_file::exists($script_file)) {125 $this->response(array(126 'error' => wpl_esc::return_html_t("Installer file doesn't exist!"),127 'message' => ''128 ));129 }130 131 if (!is_writable(WPL_ABSPATH . 'WPL.php')) {132 $this->response(array(133 'error' => wpl_esc::return_html_t("PHP doesn't have write access to the files and directories!"),134 'message' => ''135 ));136 }137 138 /** including installer and run the install method **/139 include $script_file;140 if (!class_exists('wpl_installer')) {141 $this->response(array(142 'error' => wpl_esc::return_html_t("Installer class doesn't exist!"),143 'message' => ''144 ));145 }146 147 /** run install script **/148 $wpl_installer = new wpl_installer();149 $wpl_installer->path = $tmp_directory;150 151 if (!$wpl_installer->run()) $this->response(array('error' => $wpl_installer->error, 'message' => ''));152 153 /** Trigger Event **/154 wpl_global::event_handler('package_updated', array('package_id' => (isset($wpl_installer->addon_id) ? $wpl_installer->addon_id : 0)));155 156 /** Check All Add-on update **/157 wpl_global::check_all_update();158 159 $message = $wpl_installer->message ? $wpl_installer->message : wpl_esc::return_html_t('Add-on Updated.');160 $this->response(array('error' => '', 'message' => $message));161 }162 163 83 private function save_realtyna_credentials() 164 84 {
Note: See TracChangeset
for help on using the changeset viewer.