Code "Hotel Status" for RevCMS, Explained in the thread

Results 1 to 4 of 4
  1. #1
    Account Upgraded | Title Enabled! UartigZone is offline
    MemberRank
    Dec 2013 Join Date
    LoserlandLocation
    441Posts

    ! Code "Hotel Status" for RevCMS, Explained in the thread

    Hello!


    If anyone know anything about Revcms.


    There can code a thing like maintenance, JUST only with the client, it should means that i want so i can "Close" the hotel for some times at a week for some hours. Just like the maintenance thing, just so its for the client, so when the "hotel status" is true, if you go to "url/client" it will send you to "url/closed" and if its false, you will stay on the client and connect to the hotel, like normal.


    I will be so happy if anyone can help me.


    Thanks,
    Mathias


  2. #2
    Account Upgraded | Title Enabled! asesinato is offline
    MemberRank
    Aug 2014 Join Date
    601Posts

    Re: Code "Hotel Status" for RevCMS, Explained in the thread

    Put this code in top of your client whenever you want to put it on maintenance:

    <?php
    $pageRank = 5;
    if ($pageRank > $_SESSION['user']['rank']) {
    header("Location: /closed");
    exit();
    die();
    }
    ?>


    Edit $pageRank = 5; to whatever rank will be able to bypass if enabled.

  3. #3
    Account Upgraded | Title Enabled! UartigZone is offline
    MemberRank
    Dec 2013 Join Date
    LoserlandLocation
    441Posts

    Re: Code "Hotel Status" for RevCMS, Explained in the thread

    Quote Originally Posted by BBK View Post
    Put this code in top of your client whenever you want to put it on maintenance:

    <?php
    $pageRank = 5;
    if ($pageRank > $_SESSION['user']['rank']) {
    header("Location: /closed");
    exit();
    die();
    }
    ?>


    Edit $pageRank = 5; to whatever rank will be able to bypass if enabled.
    So much thank you!!

  4. #4
    Account Upgraded | Title Enabled! asesinato is offline
    MemberRank
    Aug 2014 Join Date
    601Posts

    Re: Code "Hotel Status" for RevCMS, Explained in the thread

    Quote Originally Posted by UartigZone View Post
    So much thank you!!
    No problem.



Advertisement