Beispiel #1
0
 /**
  * @param mixed $lib_url
  */
 public static function setLibUrl($lib_url)
 {
     self::$lib_url = $lib_url;
 }
Beispiel #2
0
// ディレクトリを戻す
chdir($lib_beforeCwd);
// メモリ
ini_set("memory_limit", "512M");
// タイムアウトの時間
set_time_limit(120);
// アップロードサイズを設定
ini_set('upload_max_filesize', "256M");
// 自動エスケープを戻す
if (get_magic_quotes_gpc()) {
    function f_reMagicQuotes($args)
    {
        if (is_array($args)) {
            foreach ($args as $key => $val) {
                $args[$key] = f_reMagicQuotes($val);
            }
        } else {
            $args = stripslashes($args);
        }
        return $args;
    }
    $_POST = f_reMagicQuotes($_POST);
    $_GET = f_reMagicQuotes($_GET);
}
//$L_PROTOCOL = (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == "on")) ? "https://" : "http://";
$protocol = "http://";
$dir = preg_replace("/^" . preg_quote($_SERVER["DOCUMENT_ROOT"], "/") . "(.*)/", "\$1", preg_replace("/¥¥¥/", "/", dirname(__FILE__)));
$url = (isset($_SERVER["HTTP_HOST"]) ? $protocol . $_SERVER["HTTP_HOST"] . $dir : '') . '/exe/qr_img0.50i/php/qr_img.php';
// QRライブラリ
class_qr::setLibUrl($url);