synctwitterfriends.php uses commandline.inc
This commit is contained in:
parent
8525165dc9
commit
1951246d67
|
@ -18,24 +18,16 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Abort if called from a web server
|
|
||||||
if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
|
|
||||||
print "This script must be run from the command line\n";
|
|
||||||
exit();
|
|
||||||
}
|
|
||||||
|
|
||||||
define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
|
define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
|
||||||
define('LACONICA', true);
|
|
||||||
|
|
||||||
// Uncomment this to get useful console output
|
// Uncomment this to get useful console output
|
||||||
//define('SCRIPT_DEBUG', true);
|
|
||||||
|
|
||||||
// Preset the server at the command line
|
$helptext = <<<END_OF_TWITTER_HELP
|
||||||
|
Batch script for synching local friends with Twitter friends.
|
||||||
|
|
||||||
$server = ($argc > 1) ? $argv[1] : null;
|
END_OF_TWITTER_HELP;
|
||||||
$path = ($argc > 2) ? $argv[2] : null;
|
|
||||||
|
|
||||||
require_once(INSTALLDIR . '/lib/common.php');
|
require_once INSTALLDIR.'/scripts/commandline.inc';
|
||||||
|
|
||||||
// Make a lockfile
|
// Make a lockfile
|
||||||
$lockfilename = lockFilename();
|
$lockfilename = lockFilename();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user