コード例 #1
0
ファイル: intern.php プロジェクト: beardon/stillwaterlife-web
     processArchiveChats();
     processResources();
 } else {
     if ($_POST[POST_INTERN_SERVER_ACTION] == INTERN_ACTION_REPORTS) {
         require LIVEZILLA_PATH . "_lib/functions.internal.process.inc.php";
         require LIVEZILLA_PATH . "_lib/functions.internal.build.inc.php";
         processUpdateReport();
         buildReports();
     } else {
         if ($_POST[POST_INTERN_SERVER_ACTION] == INTERN_ACTION_DATABASE_TEST) {
             require LIVEZILLA_PATH . "_lib/functions.internal.man.inc.php";
             dataBaseTest();
         } else {
             if ($_POST[POST_INTERN_SERVER_ACTION] == INTERN_ACTION_SEND_TEST_MAIL) {
                 require LIVEZILLA_PATH . "_lib/functions.internal.man.inc.php";
                 sendTestMail();
             } else {
                 if ($_POST[POST_INTERN_SERVER_ACTION] == INTERN_ACTION_CREATE_TABLES) {
                     require LIVEZILLA_PATH . "_lib/functions.internal.man.inc.php";
                     createTables();
                 } else {
                     if ($_POST[POST_INTERN_SERVER_ACTION] == INTERN_ACTION_SET_MANAGEMENT) {
                         require LIVEZILLA_PATH . "_lib/functions.internal.man.inc.php";
                         setManagement();
                     } else {
                         if ($_POST[POST_INTERN_SERVER_ACTION] == INTERN_ACTION_SET_CONFIG) {
                             require LIVEZILLA_PATH . "_lib/functions.internal.man.inc.php";
                             setConfig();
                         } else {
                             if ($_POST[POST_INTERN_SERVER_ACTION] == INTERN_ACTION_SET_AVAILABILITY) {
                                 require LIVEZILLA_PATH . "_lib/functions.internal.man.inc.php";
コード例 #2
0
ファイル: emails_Ajax.php プロジェクト: ralpheav/processmaker
             try {
                 //print(SUCCESSFUL.',ok');
                 $_POST['FROM_NAME'] = 'Process Maker O.S. [Test mail]';
                 $_POST['FROM_EMAIL'] = $user;
                 $_POST['MESS_ENGINE'] = 'PHPMAILER';
                 $_POST['MESS_SERVER'] = $srv;
                 $_POST['MESS_PORT'] = $port;
                 $_POST['MESS_ACCOUNT'] = $user;
                 $_POST['MESS_PASSWORD'] = $passwd;
                 $_POST['TO'] = $mail_to;
                 if ($auth_required == 'yes') {
                     $_POST['SMTPAuth'] = true;
                 } else {
                     $_POST['SMTPAuth'] = false;
                 }
                 $resp = sendTestMail();
                 if ($resp->status) {
                     print SUCCESSFUL . ',' . $resp->msg;
                 } else {
                     print FAILED . ',' . $resp->msg;
                 }
             } catch (Exception $e) {
                 print FAILED . ',' . $e->getMessage();
             }
         } else {
             print 'jump this step';
         }
         break;
     default:
         print 'test finished!';
 }