mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 09:27:25 +00:00
25 lines
420 B
PHP
Executable file
25 lines
420 B
PHP
Executable file
<?php
|
|
|
|
if(php_sapi_name() != "cli") return;
|
|
|
|
require_once('serverconfig.php');
|
|
|
|
require_once('framework-1.0.8/yii.php');
|
|
require_once('yaamp/include.php');
|
|
|
|
$app = Yii::createWebApplication('yaamp/config.php');
|
|
|
|
try
|
|
{
|
|
$app->runController($argv[1]);
|
|
}
|
|
|
|
catch(CException $e)
|
|
{
|
|
debuglog($e, 5);
|
|
|
|
// $message = $e->getMessage();
|
|
// send_email_alert('backend', "backend error", "$message");
|
|
}
|
|
|
|
|