vTiger 配置文件。
This commit is contained in:
parent
f46f6a0e0e
commit
ce5d8862e3
67
vtigercron.php
Normal file
67
vtigercron.php
Normal file
@ -0,0 +1,67 @@
|
||||
<?php
|
||||
/*+*******************************************************************************
|
||||
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Start the cron services configured.
|
||||
*/
|
||||
include_once 'vtlib/Vtiger/Cron.php';
|
||||
require_once 'config.inc.php';
|
||||
if(PHP_SAPI === "cli" || (isset($_SESSION["authenticated_user_id"]) && isset($_SESSION["app_unique_key"]) && $_SESSION["app_unique_key"] == $application_unique_key)){
|
||||
|
||||
$cronTasks = false;
|
||||
if (isset($_REQUEST['service'])) {
|
||||
// Run specific service
|
||||
$cronTasks = array(Vtiger_Cron::getInstance($_REQUEST['service']));
|
||||
}
|
||||
else {
|
||||
// Run all service
|
||||
$cronTasks = Vtiger_Cron::listAllActiveInstances();
|
||||
}
|
||||
|
||||
foreach ($cronTasks as $cronTask) {
|
||||
try {
|
||||
$cronTask->setBulkMode(true);
|
||||
|
||||
// Not ready to run yet?
|
||||
if (!$cronTask->isRunnable()) {
|
||||
echo sprintf("[INFO]: %s - not ready to run as the time to run again is not completed\n", $cronTask->getName());
|
||||
continue;
|
||||
}
|
||||
|
||||
// Timeout could happen if intermediate cron-tasks fails
|
||||
// and affect the next task. Which need to be handled in this cycle.
|
||||
if ($cronTask->hadTimedout()) {
|
||||
echo sprintf("[INFO]: %s - cron task had timedout as it is not completed last time it run- restarting\n", $cronTask->getName());
|
||||
}
|
||||
|
||||
// Mark the status - running
|
||||
$cronTask->markRunning();
|
||||
|
||||
checkFileAccess($cronTask->getHandlerFile());
|
||||
require_once $cronTask->getHandlerFile();
|
||||
|
||||
// Mark the status - finished
|
||||
$cronTask->markFinished();
|
||||
|
||||
} catch (Exception $e) {
|
||||
echo sprintf("[ERROR]: %s - cron task execution throwed exception.\n", $cronTask->getName());
|
||||
echo $e->getMessage();
|
||||
echo "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
else{
|
||||
echo("Access denied!");
|
||||
}
|
||||
|
||||
?>
|
53
vtigerservice.php
Normal file
53
vtigerservice.php
Normal file
@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/*+*******************************************************************************
|
||||
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
********************************************************************************/
|
||||
if(isset($_REQUEST['service']))
|
||||
{
|
||||
if($_REQUEST['service'] == "outlook")
|
||||
{
|
||||
include("soap/vtigerolservice.php");
|
||||
}
|
||||
elseif($_REQUEST['service'] == "customerportal")
|
||||
{
|
||||
include("soap/customerportal.php");
|
||||
}
|
||||
elseif($_REQUEST['service'] == "webforms")
|
||||
{
|
||||
include("soap/webforms.php");
|
||||
}
|
||||
elseif($_REQUEST['service'] == "firefox")
|
||||
{
|
||||
include("soap/firefoxtoolbar.php");
|
||||
}
|
||||
elseif($_REQUEST['service'] == "wordplugin")
|
||||
{
|
||||
include("soap/wordplugin.php");
|
||||
}
|
||||
elseif($_REQUEST['service'] == "thunderbird")
|
||||
{
|
||||
include("soap/thunderbirdplugin.php");
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "No Service Configured for ". strip_tags($_REQUEST[service]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<h1>vtigerCRM Soap Services</h1>";
|
||||
echo "<li>vtigerCRM Outlook Plugin EndPoint URL -- Click <a href='vtigerservice.php?service=outlook'>here</a></li>";
|
||||
echo "<li>vtigerCRM Word Plugin EndPoint URL -- Click <a href='vtigerservice.php?service=wordplugin'>here</a></li>";
|
||||
echo "<li>vtigerCRM ThunderBird Extenstion EndPoint URL -- Click <a href='vtigerservice.php?service=thunderbird'>here</a></li>";
|
||||
echo "<li>vtigerCRM Customer Portal EndPoint URL -- Click <a href='vtigerservice.php?service=customerportal'>here</a></li>";
|
||||
echo "<li>vtigerCRM WebForm EndPoint URL -- Click <a href='vtigerservice.php?service=webforms'>here</a></li>";
|
||||
echo "<li>vtigerCRM FireFox Extension EndPoint URL -- Click <a href='vtigerservice.php?service=firefox'>here</a></li>";
|
||||
}
|
||||
|
||||
|
||||
?>
|
15
vtigerversion.php
Normal file
15
vtigerversion.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/*+*******************************************************************************
|
||||
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
********************************************************************************/
|
||||
$patch_version = '';
|
||||
$modified_database = '';
|
||||
$vtiger_current_version = '5.4.0';
|
||||
$_SESSION['vtiger_version'] = $vtiger_current_version;
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user