示例#1
0
 /**
  * @param void
  * @access private
  */
 private function __construct()
 {
     if (!PPHP::assertExtension('mysqli')) {
         throw new PException('MySQLi backend error!');
     }
 }
示例#2
0
 /**
  * this is called at some point to check some environment stuff.
  *
  */
 protected function checkEnvironment()
 {
     //BW Rox needs the GD plugin
     if (!PPHP::assertExtension('gd')) {
         phpinfo();
         die('GD lib required!');
     }
 }
示例#3
0
<?php

/**
 * Check environment
 *
 * @package core
 * @author The myTravelbook Team <http://www.sourceforge.net/projects/mytravelbook>
 * @copyright Copyright (c) 2005-2006, myTravelbook Team
 * @license http://www.gnu.org/licenses/gpl.html GNU General Public License (GPL)
 * @version $Id: env_check.inc.php 122 2006-07-13 16:48:45Z kang $
 */
// BW Rox needs the GD plugin
if (!PPHP::assertExtension('gd')) {
    die('GD lib required!');
}
// example call of requiring extension "xsl"
//if (!PPHP::assertExtension('xsl'))
//    die('XSL required!');