$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;
}
?>
$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;
}
?>