$getBasePath = function($protocol = NULL){
if(!isset($protocol)){
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on'){
$protocol = "https:";
} else {
$protocol = "http:";
}
}else{
$protocol .= ":";
}
if(isset($GLOBALS["base_path"])) return preg_replace('/^(http:|https:)/i', $protocol, $GLOBALS["base_path"]);
if(!isset($_REQUEST["level"]))$_REQUEST["level"] = 0;
if(isset($_REQUEST["base_url"])){
$uri = $_REQUEST["base_url"];
}else{
$uri = $_SERVER["REQUEST_URI"];
}
if(strlen($uri)-1 != strrpos($uri, "/")){
$uri = rtrim(dirname($uri), "/");
}else{
$uri = rtrim($uri, "/");
}
if($_REQUEST["level"] == 0){
$uri = $protocol."//".$_SERVER['SERVER_NAME'].$uri;
$GLOBALS["base_path"] = $uri;
return $uri;
}
$path_array = explode("/", $uri);
for ($i = 0; $i <= (int)$_REQUEST["level"]-1; $i++){
array_pop($path_array);
}
foreach ($path_array as $dir) {
if($dir != "") $base_path .= "/".$dir;
}
$base_path = $protocol."//".$_SERVER['SERVER_NAME'].$base_path;
$GLOBALS["base_path"] = $base_path;
return $base_path;
}
?>
$getBasePath = function($protocol = NULL){
if(!isset($protocol)){
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on'){
$protocol = "https:";
} else {
$protocol = "http:";
}
}else{
$protocol .= ":";
}
if(isset($GLOBALS["base_path"])) return preg_replace('/^(http:|https:)/i', $protocol, $GLOBALS["base_path"]);
if(!isset($_REQUEST["level"]))$_REQUEST["level"] = 0;
if(isset($_REQUEST["base_url"])){
$uri = $_REQUEST["base_url"];
}else{
$uri = $_SERVER["REQUEST_URI"];
}
if(strlen($uri)-1 != strrpos($uri, "/")){
$uri = rtrim(dirname($uri), "/");
}else{
$uri = rtrim($uri, "/");
}
if($_REQUEST["level"] == 0){
$uri = $protocol."//".$_SERVER['SERVER_NAME'].$uri;
$GLOBALS["base_path"] = $uri;
return $uri;
}
$path_array = explode("/", $uri);
for ($i = 0; $i <= (int)$_REQUEST["level"]-1; $i++){
array_pop($path_array);
}
foreach ($path_array as $dir) {
if($dir != "") $base_path .= "/".$dir;
}
$base_path = $protocol."//".$_SERVER['SERVER_NAME'].$base_path;
$GLOBALS["base_path"] = $base_path;
return $base_path;
}
?>
簡単・安心無料相談
まずは近くの
看板屋さんを選ぼう
看板制作会社を探す
看板を設置したい場所の地域(エリア)をお選びください。
各地域で活躍している、優良な看板制作会社をご紹介します。
あつまる看板の強みは技術力・提案力・対応力
あつまる看板が、厳格な基準をクリアした優良な看板制作会社を紹介します。
$getBasePath = function ($protocol = NULL) {
if (!isset($protocol)) {
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
$protocol = "https:";
} else {
$protocol = "http:";
}
} else {
$protocol .= ":";
}
if (isset($GLOBALS["base_path"])) return preg_replace('/^(http:|https:)/i', $protocol, $GLOBALS["base_path"]);
if (!isset($_REQUEST["level"])) $_REQUEST["level"] = 0;
if (isset($_REQUEST["base_url"])) {
$uri = $_REQUEST["base_url"];
} else {
$uri = $_SERVER["REQUEST_URI"];
}
if (strlen($uri) - 1 != strrpos($uri, "/")) {
$uri = rtrim(dirname($uri), "/");
} else {
$uri = rtrim($uri, "/");
}
if ($_REQUEST["level"] == 0) {
$uri = $protocol . "//" . $_SERVER['SERVER_NAME'] . $uri;
$GLOBALS["base_path"] = $uri;
return $uri;
}
$path_array = explode("/", $uri);
for ($i = 0; $i <= (int)$_REQUEST["level"] - 1; $i++) {
array_pop($path_array);
}
foreach ($path_array as $dir) {
if ($dir != "") $base_path .= "/" . $dir;
}
$base_path = $protocol . "//" . $_SERVER['SERVER_NAME'] . $base_path;
$GLOBALS["base_path"] = $base_path;
return $base_path;
}
?>
看板相談カウンター
経験豊富なアドバイザーがより良い看板制作会社をご紹介します。
0120-829-938
設置までの流れ・大まかな予算・最適な制作会社など、初歩的な疑問・質問、思い立ったらいつでもご連絡ください。(受付:平日 9時~18時)
$getBasePath = function($protocol = NULL){
if(!isset($protocol)){
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on'){
$protocol = "https:";
} else {
$protocol = "http:";
}
}else{
$protocol .= ":";
}
if(isset($GLOBALS["base_path"])) return preg_replace('/^(http:|https:)/i', $protocol, $GLOBALS["base_path"]);
if(!isset($_REQUEST["level"]))$_REQUEST["level"] = 0;
if(isset($_REQUEST["base_url"])){
$uri = $_REQUEST["base_url"];
}else{
$uri = $_SERVER["REQUEST_URI"];
}
if(strlen($uri)-1 != strrpos($uri, "/")){
$uri = rtrim(dirname($uri), "/");
}else{
$uri = rtrim($uri, "/");
}
if($_REQUEST["level"] == 0){
$uri = $protocol."//".$_SERVER['SERVER_NAME'].$uri;
$GLOBALS["base_path"] = $uri;
return $uri;
}
$path_array = explode("/", $uri);
for ($i = 0; $i <= (int)$_REQUEST["level"]-1; $i++){
array_pop($path_array);
}
foreach ($path_array as $dir) {
if($dir != "") $base_path .= "/".$dir;
}
$base_path = $protocol."//".$_SERVER['SERVER_NAME'].$base_path;
$GLOBALS["base_path"] = $base_path;
return $base_path;
}
?>