$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;
}
?>
静岡日産では、就職活動を応援するため「LINE公式アカウント」を開設しています。
友だち登録すれば、新卒・中途採用問わず会社説明会の日程調整からエントリーシート・履歴書などの応募書類もアップロード提出ができます。
日常的に使っているLINEアプリだからこそ、気軽に問い合わせできる窓口として友だち登録をお願いいたします。
$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;
}
?>