/** * Checking the sending big emails. * @param integer $size * @param string $email * @return array * @static * @final */ public static final function SendingBigEmails($size = 65, $email = '*****@*****.**') { global $count, $js; if (Server::PHPInterface() == 'cli' || Server::EmailSending() !== true || FileSystem::FileDeletion() === false) { return false; } if (file_exists("{$_SERVER['DOCUMENT_ROOT']}/test_big_email.php")) { @unlink("{$_SERVER['DOCUMENT_ROOT']}/test_big_email.php"); } $file = @fopen("{$_SERVER['DOCUMENT_ROOT']}/test_big_email.php", 'wb'); @fputs($file, "<?php\n" . "ini_set('display_errors', false);\n" . "@error_reporting(-1);\n\n" . "\$body = str_repeat(str_repeat('*', 1023) . \"\\n\", {$size});\n" . "\$time = explode(' ', microtime());\n" . "\$time = (float) \$time[0] + (float) \$time[1];\n" . "\$mail = @mail('{$email}', \"Server Test\\r\\n\\tmultiline subject\", \$body, \"BCC: {$email}\\r\\n\");\n" . "\$finishtime = explode(' ', microtime());\n" . "\$finishtime = (float) \$finishtime[0] + (float) \$finishtime[1];\n" . "\$time = round(\$finishtime - \$time, 2);\n" . "if (\$mail) {\n" . " echo \"Yes \$time s\";\n" . "} else {\n" . " echo \"No\";\n" . "}\n" . "unlink(__FILE__)\n" . '?>'); @fclose($file); $cnt = $count + 1; $js .= "\$('#value-{$cnt}').parent('tr').removeClass().addClass('active');\n" . "\$('#value-{$cnt}').siblings('.loader').html('<img src=\"https://www.crazydogtshirts.com/skin/frontend/mtcolias/default/images/loader.gif\"/>');\n" . "\$.get( \"" . dirname($_SERVER['PHP_SELF']) . "/test_big_email.php\", function(data) {\n" . " \$('#value-{$cnt}').siblings('.loader').children().remove();\n" . " \$('#value-{$cnt}').parent('tr').removeClass();\n" . " if (data == 'No' || data == '') {\n" . " \$('#value-{$cnt}').html(data);\n" . " \$('#value-{$cnt}').parent('tr').addClass('danger');\n\n" . " } else {\n" . " \$('#value-{$cnt}').html(data);\n" . " \$('#value-{$cnt}').parent('tr').addClass('success');\n\n" . " }\n" . "})\n" . ".fail(function() {\n" . " \$('#value-{$cnt}').siblings('.loader').children().remove();\n" . " \$('#value-{$cnt}').html('No');\n" . " \$('#value-{$cnt}').parent('tr').addClass('danger');\n" . "})\n"; return 'Wait'; }
$b->add('Angularjs', JavaScript::Angularjs(), null, null, 'Finds Angularjs.'); $b->add('Backbone', JavaScript::Backbone(), null, null, 'Finds Backbone.'); $b->add('Knockout', JavaScript::Knockout(), null, null, 'Finds Knockout.'); $b->add('React', JavaScript::React(), null, null, 'Finds React.'); $b->add('Requirejs', JavaScript::Requirejs(), null, null, 'Finds Requirejs.'); $b->add('Ember', JavaScript::Ember(), null, null, 'Finds Ember.'); $b->addHeader('Main.'); $b->add('PHP Interface', Server::PHPInterface(), null, null, 'Finds interface php.'); $b->add('PHP Version', Server::PHPVersion(), null, null, 'Finds version of php.'); $b->add('PHP Accelerator', Server::PHPAccelerator(), null, null, 'Finds accelerator php.'); $b->add('Safe Mode', Server::SafeMode(), null, null, 'Checking Safe Mode.'); $b->add('Short Open Tag', Server::ShortOpenTag(), null, null, 'Checking Short Open Tag.'); $b->add('Shared Memory', Server::SharedMemory(), null, null, 'Checking Shared Memory.'); $b->add('Posix', Server::Posix(), null, null, 'Checking posix.'); $b->add('Pcntl', Server::Pcntl(), null, null, 'Checking pcntl.'); $b->add('Email Sending', Server::EmailSending(), null, null, 'Checking Messages.'); $b->add('Mcrypt', Server::Mcrypt(), null, null, 'Checking mcrypt.'); $b->add('Sockets', Server::Sockets(), null, null, 'Checking sockets.'); $b->add('PHP Regex', Server::PHPRegex(), null, null, 'Checking php regex.'); $b->add('Perl Regex', Server::PerlRegex(), null, null, 'Checking perl regex.'); $b->add('Zlib', Server::Zlib(), null, null, 'Checking zlib.'); $b->add('GDlib', Server::GDlib(), null, null, 'Checking gdlib.'); $b->add('Free Type', Server::FreeType(), null, null, 'Checking free type.'); $b->add('Mbstring', Server::Mbstring(), null, null, 'Checking mbstring.'); $b->add('PDO', Server::PDO(), null, null, 'Checking PDO'); $b->add('SimpleXML', Server::SimpleXML(), null, null, 'Checking SimpleXML'); $b->add('DOMDocument', Server::DOMDocument(), null, null, 'Checking DOMDocument'); $b->add('Curl', Server::Curl(), null, null, 'Checking Curl'); $b->add('Memory Limit', Server::MemoryLimit(), null, null, 'Checking Memory Limit'); $b->add('Max Execution Time', Server::MaxExecutionTime(), null, null, 'Checking Max Execution Time'); $b->add('Umask', Server::Umask(), null, null, 'Finds and returns the umask.');