Jump to content

edhkirk

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

edhkirk's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Here is the code for the cron.php: <?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!');
  2. I tried this and it did not seem to work. Is it possible that the cron.php code went to look for the variable "code" in the query again, and failed to find it? Thus it overwrote the value or set it to null.
  3. The script below requires a password "code" in order to move forward. I have the password, and it executes fine through an HTTP command with a query string. I have to run this file from a unix command from another php file. I am getting errors when I try to use a session variable to pass the code. For example: $_SESSION['code'] = 'f988040a'; Is there any way to get the password "code" to this 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!');
  4. I am trying to execute the following command in a php file: require("/home/content/*myserver/kithomegreen/wp-content/plugins/wp-o-matic/cron.php?code=f988040a"); But I get the error: "failed to open stream: No such file or directory" When I remove the question mark, it executes fine but does not pass the variable code. Do I need to change the syntax for the question mark, or is there another way to pass the code to the next file?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.