Changeset 1724289
- Timestamp:
- 09/04/2017 01:29:41 PM (9 years ago)
- Location:
- ginger/trunk
- Files:
-
- 3 edited
-
addon/exporter/index.php (modified) (2 diffs)
-
addon/logger/ginger.logger.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ginger/trunk/addon/exporter/index.php
r1620188 r1724289 15 15 } 16 16 if(isset($_POST["action"]) && $_POST["action"] == "import"){ 17 $nonce = $_REQUEST['_wpnonce']; 18 if ( ! wp_verify_nonce( $nonce, 'save_ginger_export_options' ) ) { 19 exit; // Get out of here, the nonce is rotten! 20 } 17 21 if($newconf = @unserialize(stripslashes($_POST["data"]))) { 22 $newconf = json_decode(json_encode($newconf)); 18 23 foreach($newconf as $key => $val){ 19 24 update_option($key, $val); … … 56 61 <p><?php _e("Upload here the export file to overwrite existing settings!", "ginger"); ?></p> 57 62 <form method="post" action="admin.php?page=<?php echo $_GET["page"]; ?>"> 58 <?php wp_nonce_field('save_ginger_export_options' , 'ginger_export_options'); ?>63 <?php wp_nonce_field('save_ginger_export_options'); ?> 59 64 <input type="hidden" name="action" value="import" > 60 65 <textarea name="data" style="width:100%;" rows="10" ></textarea> -
ginger/trunk/addon/logger/ginger.logger.php
r1620188 r1724289 125 125 var ginger_logger = "Y"; 126 126 var ginger_logger_url = "<?php bloginfo("url"); ?>"; 127 var current_url = "<?php echo (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; ?>"; 127 var current_url = "<?php 128 $curl = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; 129 if(filter_var($url, FILTER_VALIDATE_URL) === FALSE){ 130 $curl = get_bloginfo("url"); 131 }else{ 132 $curl = $curl; 133 } 134 echo $curl; 135 ?>"; 128 136 129 137 function gingerAjaxLogTime(status) { … … 151 159 var parameters = "ginger_action=log&time=" + ginger_logtime + "&url=" + current_url + "&status=" + status; 152 160 var url= ginger_logger_url + "?" + parameters; 153 console.log(url);161 //console.log(url); 154 162 xmlHttp.open("GET", url, true); 155 163 … … 170 178 if($url == "") 171 179 $url = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; 180 if(filter_var($url, FILTER_VALIDATE_URL) === FALSE){ 181 $url = get_bloginfo("url"); 182 } 172 183 $table_name = $wpdb->prefix . 'logger_ginger'; 173 184 $ipuser = ginger_get_ip_address(); -
ginger/trunk/readme.txt
r1711396 r1724289 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.7.3 7 Stable tag: 4.1. 37 Stable tag: 4.1.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 92 92 93 93 94 = 4.1.3 =95 * Dutch language96 97 94 = 4.1.2 = 98 95 * bug fixing from github
Note: See TracChangeset
for help on using the changeset viewer.