go live function
This commit is contained in:
@@ -397,7 +397,13 @@ class Databap extends PhpObject
|
||||
$this->addUser('test', 'test', 'test', 'test@test.com');
|
||||
|
||||
//Write the SAP blog parser bash script to main folder
|
||||
@file_put_contents('sap_website_parser.sh', "#!/bin/bash\n\n/usr/bin/php -f index.php a=external_access p=blogs auth_token=".$iSystemId.'_'.str_replace('$', '\$', $this->generateExternalAccessToken($iSystemId)));
|
||||
@file_put_contents('sap_website_parser.sh', "#!/bin/bash\n\ncd /var/www\n\n/usr/bin/php -f index.php a=external_access p=blogs auth_token=".$iSystemId.'_'.str_replace('$', '\$', $this->generateExternalAccessToken($iSystemId)));
|
||||
}
|
||||
|
||||
public function goLive()
|
||||
{
|
||||
$iSystemId = self::SYSTEM_USER_ID;
|
||||
return "/usr/bin/php -f index.php a=external_access p=blogs auth_token=".$iSystemId.'_'.str_replace('$', '\$', $this->generateExternalAccessToken($iSystemId));
|
||||
}
|
||||
|
||||
private function setUserId($iUserId)
|
||||
|
||||
Reference in New Issue
Block a user