예제 #1
0
			{
				jQuery("#meow-purge-data").removeAttr('disabled');
				alert("Oops.  Something went wrong!  Reload this page then try again.");
			}

			return false;
		});
	}
	else
		return false;
});

//let's warn people that they might get a blank white screen
//after PHP deletes the .htaccess file.
var htaccess_warned=<?php 
echo meow_wpcontent_htaccess_exists() ? 0 : 1;
?>
;
jQuery('#meow_wpcontent_htaccess').click(function(){
	//only warn once
	if(htaccess_warned === 1)
		return;

	//a simple alert will do
	alert("Just a heads up: it is normal to receive a blank page immediately after disabling this option. It is a one-time thing, nothing to worry about.");

	//and don't bother them again
	htaccess_warned = 1;
});

</script>
예제 #2
0
파일: index.php 프로젝트: istrwei/china-vpn
function meow_remove_wpcontent_htaccess()
{
    //if the file doesn't exist, we're done
    if (!meow_wpcontent_htaccess_exists()) {
        return true;
    }
    //try to delete it
    @unlink(MEOW_HTACCESS_FILE);
    //if the unlink worked, the file should be gone, right?
    return !meow_wpcontent_htaccess_exists();
}