mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-26 18:40:54 +00:00
fix missing pcntl_fork func
This commit is contained in:
parent
4765f63328
commit
2694a99c85
2 changed files with 10 additions and 6 deletions
|
@ -16,7 +16,11 @@ class Mail_Handler{
|
||||||
*/
|
*/
|
||||||
private function mail_fork() {
|
private function mail_fork() {
|
||||||
//Start a new child process and return the process id!
|
//Start a new child process and return the process id!
|
||||||
$pid = pcntl_fork();
|
if (function_exists('pcntl_fork')) {
|
||||||
|
$pid = pcntl_fork();
|
||||||
|
} else {
|
||||||
|
$pid = getmypid ();
|
||||||
|
}
|
||||||
return $pid;
|
return $pid;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,10 +60,10 @@ class Support_Group{
|
||||||
* @return a string that specifies if it was a success or not (SUCCESS, SIZE_ERROR, NAME_TAKEN or TAG_TAKEN )
|
* @return a string that specifies if it was a success or not (SUCCESS, SIZE_ERROR, NAME_TAKEN or TAG_TAKEN )
|
||||||
*/
|
*/
|
||||||
public static function createSupportGroup( $name, $tag, $groupemail, $imap_mailserver, $imap_username, $imap_password) {
|
public static function createSupportGroup( $name, $tag, $groupemail, $imap_mailserver, $imap_username, $imap_password) {
|
||||||
error_log( "Error at line " . __LINE__ . " in file " . __FILE__);
|
//error_log( "Error at line " . __LINE__ . " in file " . __FILE__);
|
||||||
if(strlen($name) <= 21 && strlen($name) >= 4 &&strlen($tag) <= 8 && strlen($tag) >= 2 ){
|
if(strlen($name) <= 21 && strlen($name) >= 4 &&strlen($tag) <= 8 && strlen($tag) >= 2 ){
|
||||||
$notExists = self::supportGroup_EntryNotExists($name, $tag);
|
$notExists = self::supportGroup_EntryNotExists($name, $tag);
|
||||||
error_log( "Error at line " . __LINE__ . " in file " . __FILE__);
|
//error_log( "Error at line " . __LINE__ . " in file " . __FILE__);
|
||||||
if ( $notExists == "SUCCESS" ){
|
if ( $notExists == "SUCCESS" ){
|
||||||
$sGroup = new self();
|
$sGroup = new self();
|
||||||
$values = array('Name' => $name, 'Tag' => $tag, 'GroupEmail' => $groupemail, 'IMAP_MailServer' => $imap_mailserver, 'IMAP_Username' => $imap_username, 'IMAP_Password' => $imap_password);
|
$values = array('Name' => $name, 'Tag' => $tag, 'GroupEmail' => $groupemail, 'IMAP_MailServer' => $imap_mailserver, 'IMAP_Username' => $imap_username, 'IMAP_Password' => $imap_password);
|
||||||
|
@ -80,14 +80,14 @@ class Support_Group{
|
||||||
$sGroup->setIMAP_Password($enc_password);
|
$sGroup->setIMAP_Password($enc_password);
|
||||||
$sGroup->create();
|
$sGroup->create();
|
||||||
|
|
||||||
error_log( "Error at line " . __LINE__ . " in file " . __FILE__);
|
//error_log( "Error at line " . __LINE__ . " in file " . __FILE__);
|
||||||
}else{
|
}else{
|
||||||
error_log( "Error at line " . __LINE__ . " in file " . __FILE__);
|
//error_log( "Error at line " . __LINE__ . " in file " . __FILE__);
|
||||||
//return NAME_TAKEN or TAG_TAKEN
|
//return NAME_TAKEN or TAG_TAKEN
|
||||||
return $notExists;
|
return $notExists;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
error_log( "Error at line " . __LINE__ . " in file " . __FILE__);
|
//error_log( "Error at line " . __LINE__ . " in file " . __FILE__);
|
||||||
//RETURN ERROR that indicates SIZE
|
//RETURN ERROR that indicates SIZE
|
||||||
return "SIZE_ERROR";
|
return "SIZE_ERROR";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue