/home/iransaf1/mehman724.com/app/themes/default/modules/hotels/rooms.php
</p>
<?php } ?>
</div>
</div>
</div>
<?php if ($r->detail->rate_error==0){?>
<button type="submit" class="book_button btn btn-primary btn-block btn-lg chk" style="margin-top: 20px;background-color: #fe4a0f" disabled>
<?php echo "رزرو اتاق" ?>
</button>
<?php }?>
</div>
</div>
<div class="collapse" id="details<?php echo $r->detail->id;?>">
<div class="card card-body" style="background-color: transparent">
<div class="magnific-gallery row">
<?php foreach($r->detail->Images as $Img){ if($r->detail->thumbnail != $Img->thumbImage){ ?>
<div class="col-md-3">
<div class="zoom-gallery<?php echo $r->detail->id; ?>">
<a href="<?php echo $Img['thumbImage'];?>" data-source="<?php echo $Img['thumbImage'];?>" title="<?php echo $r->detail->title;?>">
<img class="img-responsive" src="<?php echo $Img['thumbImage'];?>">
</a>
</div>
</div>
<?php } } ?>
</div>
<div class="clearfix"></div>
<br>
<?php if(!empty($r->detail->desc)){ ?>
<p class="go-text-right RTL"><strong><?= T::description?> : </strong> </p>
<span class="rooms-text"><?php echo $r->detail->desc;?></span>
<?php } ?>
<hr>
<?php if(!empty($r->detail->Amenities)){ ?>
<p class="RTL"><strong><?= T::amenities_room ?> : </strong></p>
<div class="row">
<?php foreach($r->detail->Amenities as $roomAmenity){ if(!empty($roomAmenity->name)){ ?>
<div class="col-md-4">
<ul class="list_ok RTL">
/home/iransaf1/mehman724.com/app/themes/default/modules/hotels/details.php
<div class="row">
<div class="col-lg-12">
<div class="single-content-wrap padding-top-10px">
<?php if (!empty($hotel->name)) { ?>
<div id="description" class="page-scroll">
<div class="section-block"></div>
<div class="single-content-item padding-top-30px padding-bottom-10px">
<h3 class="title font-size-20"><?=T::about?> <?=$hotel->name?></h3>
<?php if (empty($hotel->desc)) {} else { ?>
<p class="py-3"><?=$hotel->desc?></p>
<?php } ?>
</div>
<!-- end single-content-item -->
<div class="section-block"></div>
</div><!-- end description -->
<?php } ?>
<!-- INCLUDE ROOMS orginal -->
<?php include "rooms.php" ?>
<?php if (!empty($hotel->amenities)) { ?>
<div id="amenities" class="page-scroll">
<div class="single-content-item padding-top-40px padding-bottom-20px">
<h3 class="title font-size-20"><?=T::hotels_hotel?> <?=T::amenities?></h3>
<div class="amenities-feature-item pt-4">
<div class="row">
<?php foreach ($hotel->amenities as $index => $item) { ?>
<div class="col-lg-4 responsive-column">
<div class="single-tour-feature d-flex align-items-center mb-3">
<div class="single-feature-icon icon-element ml-0 flex-shrink-0 mr-3" style="background:#fff">
<?php if (empty($item->icon)) { ?>
<i class="la la-check"></i>
<?php } ?>
<img src="<?=$item->icon?>" alt="" style="max-width:30px" />
</div>
<div class="single-feature-titles">
<h3 class="title font-size-15 font-weight-medium"><?=$item->name?></h3>
<!--<span class="font-size-13">4 Star</span>-->
</div>
/home/iransaf1/mehman724.com/app/themes/default/main.php
<?php include "header.php"; ?>
<?php include $body; ?>
<?php include "footer.php"; ?>
/home/iransaf1/mehman724.com/app/controller/hotels.php
if (isset($hotel_name)) {
$hname = $hotel_name;
} else {
$hname = "";
}
$h_name = str_replace("-", " ", $hotel_name);
$title = ucwords($h_name);
$meta_title = $hotel_name;
$meta_appname = "";
$meta_desc = "";
$meta_img = "";
$meta_url = "";
$meta_author = "";
$meta = "1";
// GENERATE LOGS
logs($SearchType = "Hotels Details ");
$body = views . "modules/hotels/details.php";
include layout;
}
else {
$_SESSION['session_currency'] = $url[2];
echo '<script>window.location.href = "' . root . $urls . '"</script>';
}
});
/home/iransaf1/mehman724.com/app/lib/router.php
} else {
throw new InvalidArgumentException('Route/error callable as string must not be empty.');
}
$callable = str_replace('.', '\\', $callable);
}
if (is_array($callable)) {
if (count($callable) !== 2)
throw new InvalidArgumentException('Route/error callable as array must contain and contain only two strings.');
if (strlen($callable[0]) > 0) {
if ($callable[0][0] == '@') {
$callable[0] = $this->baseNamespace . substr($callable[0], 1);
}
} else {
throw new InvalidArgumentException('Route/error callable as array must contain and contain only two strings.');
}
$callable[0] = str_replace('.', '\\', $callable[0]);
}
// Call the callable
return call_user_func_array($callable, $params);
}
/**
* Dispatches the router using data from the $_SERVER global
*
* @return mixed Router output
*/
public function dispatchGlobal()
{
$pos = strpos($_SERVER['REQUEST_URI'], '?');
return $this->dispatch(
$_SERVER['REQUEST_METHOD'],
'/'. trim(
substr($pos !== false
? substr($_SERVER['REQUEST_URI'], 0, $pos)
: $_SERVER['REQUEST_URI'],
strlen(implode('/', array_slice(explode('/', $_SERVER['SCRIPT_NAME']), 0, -1)) .'/')),
'/'
)
);
/home/iransaf1/mehman724.com/app/lib/router.php
} else {
throw new InvalidArgumentException('Route/error callable as string must not be empty.');
}
$callable = str_replace('.', '\\', $callable);
}
if (is_array($callable)) {
if (count($callable) !== 2)
throw new InvalidArgumentException('Route/error callable as array must contain and contain only two strings.');
if (strlen($callable[0]) > 0) {
if ($callable[0][0] == '@') {
$callable[0] = $this->baseNamespace . substr($callable[0], 1);
}
} else {
throw new InvalidArgumentException('Route/error callable as array must contain and contain only two strings.');
}
$callable[0] = str_replace('.', '\\', $callable[0]);
}
// Call the callable
return call_user_func_array($callable, $params);
}
/**
* Dispatches the router using data from the $_SERVER global
*
* @return mixed Router output
*/
public function dispatchGlobal()
{
$pos = strpos($_SERVER['REQUEST_URI'], '?');
return $this->dispatch(
$_SERVER['REQUEST_METHOD'],
'/'. trim(
substr($pos !== false
? substr($_SERVER['REQUEST_URI'], 0, $pos)
: $_SERVER['REQUEST_URI'],
strlen(implode('/', array_slice(explode('/', $_SERVER['SCRIPT_NAME']), 0, -1)) .'/')),
'/'
)
);
/home/iransaf1/mehman724.com/app/lib/router.php
$service = isset($route[1]) ? $route[1] : null;
// Fix missing begin-/
if ($regex[0] != '/')
$regex = '/' . $regex;
// Fix trailing /
if ($len > 1 && $regex[$len - 1] == '/')
$regex = substr($regex, 0, -1);
// Prevent @ collision
$regex = str_replace('@', '\\@', $regex);
// If the path matches the pattern
if (preg_match('@^' . $regex . '$@', $path, $params)) {
// Pass the params to the callback, without the full url
array_shift($params);
try {
return $this->call($callback, $service == null ? $params : array_merge([$service], $params));
} catch (HttpRequestException $ex) {
$params = [$method, $path, $ex->getCode(), $ex];
return $this->call($this->error, $this->service == null ? $params : array_merge([$this->service], $params));
} catch (Exception $ex) {
$params = [$method, $path, 500, $ex];
return $this->call($this->error, $this->service == null ? $params : array_merge([$this->service], $params));
}
}
}
}
}
// Nothing found --> error handler
return $this->call($this->error,
array_merge($this->service == null ? [] : [$this->service], [$method, $path, 404, new HttpRequestException(self::NO_ROUTE_FOUND_MSG)]));
}
/**
* Internal function to parse and call custom callables
*
/home/iransaf1/mehman724.com/app/lib/router.php
}
} else {
throw new InvalidArgumentException('Route/error callable as array must contain and contain only two strings.');
}
$callable[0] = str_replace('.', '\\', $callable[0]);
}
// Call the callable
return call_user_func_array($callable, $params);
}
/**
* Dispatches the router using data from the $_SERVER global
*
* @return mixed Router output
*/
public function dispatchGlobal()
{
$pos = strpos($_SERVER['REQUEST_URI'], '?');
return $this->dispatch(
$_SERVER['REQUEST_METHOD'],
'/'. trim(
substr($pos !== false
? substr($_SERVER['REQUEST_URI'], 0, $pos)
: $_SERVER['REQUEST_URI'],
strlen(implode('/', array_slice(explode('/', $_SERVER['SCRIPT_NAME']), 0, -1)) .'/')),
'/'
)
);
}
}
class HttpRequestException extends Exception {
}
/home/iransaf1/mehman724.com/index.php
echo '<script>window.location.href = "'.root.'"</script>';
}); } }
// STORE LOGS TO LOGGING FILE
function logs($SearchType){ $log = "IP: ".$_SERVER['REMOTE_ADDR'].' - '.date("F j, Y, g:i a"). '- Type => '.$SearchType . ' - URL => ' .$_GET['url'].PHP_EOL.
"------------------------------------".PHP_EOL;
$logs_path = "app/logs";
if (!file_exists($logs_path)) { mkdir("app/logs", 0777); } else { };
file_put_contents('app/logs/log_'.date("j.n.Y").'.log', $log, FILE_APPEND); };
// STORE SEARCHS TO SESSION
function SEARCH_SESSION($MODULE,$CITY){
$actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$b_=(object)array($MODULE,$CITY,$actual_link);
if (isset($_SESSION['SEARCHES'])){} else { $_SESSION['SEARCHES'] = array(); }
array_push($_SESSION['SEARCHES'],$b_); };
// $router->get('/page/(.*)', ['PageController', 'viewPage']);
// $router->route(['OPTION', 'PUT'], '/test', 'PageController::test');
$router->dispatchGlobal();
?>