ruạṛ
<?php if ( !defined('WP_LOAD_PATH') ) { /** classic root path if wp-content and plugins is below wp-config.php */ $classic_root = dirname(dirname(dirname(dirname(__FILE__)))) . '/' ; if (file_exists( $classic_root . 'wp-load.php') ) define( 'WP_LOAD_PATH', $classic_root); else if (file_exists( $path . 'wp-load.php') ) define( 'WP_LOAD_PATH', $path); else exit("Could not find wp-load.php"); } // let's load WordPress require_once( WP_LOAD_PATH . 'wp-config.php'); mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); mysql_select_db(DB_NAME) or die(mysql_error()); var_dump($_REQUEST); if(current_user_can( 'moderate_comments' )){ update_option("bugherd_installation", $_REQUEST["bugherd_installation"]); update_option("bugherd_projectid", $_REQUEST["bugherd_projectid"]); update_option("bugherd_iplist", $_REQUEST["bugherd_iplist"]); } ?> <script type="text/javascript"> window.parent.document.getElementById("bugherdsbmit").value = "Saved" ; setTimeout( function(){ window.parent.document.getElementById("bugherdsbmit").value = "Save" ; },1000); </script>
cải xoăn