Skip to content
Snippets Groups Projects
Commit 90c47717 authored by Prasad's avatar Prasad
Browse files

Cleanup of cron file

parent f9df8c24
No related branches found
No related tags found
1 merge request!311Language italian translation
......@@ -24,8 +24,6 @@ require_once 'includes/Loader.php';
vimport ('includes.runtime.EntryPoint');
$site_URLArray = explode('/',$site_URL);
$organization_name = $site_URLArray[2];
$organization_name = str_replace('.od1.vtiger.com', '', $organization_name);
$version = explode('.', phpversion());
......@@ -36,9 +34,9 @@ if($php < 50300){
$hostName = gethostname();
}
$mailbody ="Instance dir : $root_directory <br/> Company Name : $organization_name <br/> Site Url : $site_URL <br/> Host Name : $hostName<br/>";
$mailbody ="Instance dir : $root_directory <br/> Site Url : $site_URL <br/> Host Name : $hostName<br/>";
$mailSubject = "[Alert] ";
$mailSubject = "[Alert] $organization_name ";
if(PHP_SAPI === "cli" || (isset($_SESSION["authenticated_user_id"]) && isset($_SESSION["app_unique_key"]) && $_SESSION["app_unique_key"] == $application_unique_key)){
$cronTasks = false;
......
  • Manuel @manuelgit ·
    Contributor

    @prasad is this lines still necessary?

    $site_URLArray = explode('/',$site_URL);
    
    $version = explode('.', phpversion());
    
    $php = ($version[0] * 10000 + $version[1] * 100 + $version[2]);
    if($php <  50300){
    	$hostName = php_uname('n');
    } else {
    	$hostName = gethostname();
    }
    
    $mailbody ="Instance dir : $root_directory <br/> Site Url : $site_URL <br/> Host Name : $hostName<br/>";
    $mailSubject = "[Alert] ";
    ```
  • Author Maintainer

    @manuelgit - yes, there was a dependency on notification.

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment