adding web crawler update in admin panel

This commit is contained in:
2015-05-04 23:31:21 +02:00
parent 33620243cc
commit dfca43e528
2 changed files with 8 additions and 0 deletions

View File

@@ -401,6 +401,11 @@ class Databap extends PhpObject
@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=".self::SYSTEM_USER_ID.'_'.str_replace('$', '\$', $this->generateExternalAccessToken(self::SYSTEM_USER_ID)));
}
public function updateWebCrawler()
{
@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=".self::SYSTEM_USER_ID.'_'.str_replace('$', '\$', $this->generateExternalAccessToken(self::SYSTEM_USER_ID)));
}
public function goLive()
{

View File

@@ -202,6 +202,9 @@ if($bUserOk && $sAction!=Databap::EXT_ACCESS)
case 'add_company':
$sResult = $oDatabap->addCompany($sCompany);
break;
case 'update_web_crawler':
$sResult = $oDatabap->updateWebCrawler();
break;
case 'reset_pass':
$sResult = $oDatabap->resetPass($oUser);
break;