Ejemplo n.º 1
0
 /**
  * Creates an http request.
  * @param string $body
  * @return boolean
  * @static
  * @final
  */
 public static final function CreateRequest($body = '')
 {
     if (Server::Sockets() == false || isset($_SERVER['PHP_SELF']) === false || empty($body)) {
         return false;
     }
     $res = @fsockopen(self::getHost(), $_SERVER['SERVER_PORT'] ? $_SERVER['SERVER_PORT'] : 80, $errno, $errstr, 3);
     if ($res) {
         fputs($res, $body);
         $result = end(explode("\n", fread($res, 4096)));
         fclose($res);
         return $result == '1' ? true : false;
     } else {
         return false;
     }
 }
Ejemplo n.º 2
0
 /**
  * Checks operation ssl via http.
  * @param string $domain
  * @return boolean
  * @static
  * @final
  */
 public static final function SSL($domain = '')
 {
     if (Server::Sockets() === false) {
         return false;
     }
     if (empty($domain)) {
         $domain = $_SERVER['SERVER_NAME'] ? $_SERVER['SERVER_NAME'] : 'localhost';
     }
     $res = @fsockopen("ssl://{$domain}", 443, $errno, $errstr, 10);
     if ($res) {
         @fclose($res);
         $result = true;
     } else {
         $result = false;
     }
     return $result;
 }
Ejemplo n.º 3
0
$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.');
$b->add('Post Max Size', Server::PostMaxSize(), null, null, 'Finds and returns the post max size.');
$b->add('Register Globals', Server::RegisterGlobals(), null, null, 'Checking Register Globals.');