mirror of
https://github.com/kennethreitz-archive/wordpress-skeleton.git
synced 2026-06-21 08:00:59 +00:00
18 lines
584 B
PHP
Executable File
18 lines
584 B
PHP
Executable File
<?php
|
|
|
|
require_once(dirname(__FILE__) . '/../../../wp-config.php');
|
|
|
|
nocache_headers();
|
|
|
|
// if uninstalled, let's not do anything
|
|
if(! get_option('wpo_version'))
|
|
return false;
|
|
|
|
// check password
|
|
if(isset($_REQUEST['code']) && $_REQUEST['code'] == get_option('wpo_croncode'))
|
|
{
|
|
require_once( dirname(__FILE__) . '/wpomatic.php' );
|
|
|
|
$wpomatic->runCron();
|
|
} else
|
|
$wpomatic->log('Warning! cron.php was called with the wrong password or without one!'); |