Housekeeping issue

May 1, 2015
470
154
My housekeeping is giving me a 404 file not found,
I've installed all the proper files, I have everything correct in my web.config (I think, I'll post it below)
I also have tried downloading helicon ape, that was my first solution & it did not work.

Thanks,

Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Imported Rule 1">
                    <match url="^(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 2">
                    <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 3">
                    <match url="^(.*)\.htm$" />
                    <action type="Rewrite" url="{R:1}.php" />
                </rule>
                <rule name="Imported Rule 4">
                    <match url="^(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="dash.php?page={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 5">
                    <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="dash.php?url={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 6">
                    <match url="^(community/staff)$" ignoreCase="false" />
                    <action type="Rewrite" url="staff" />
                </rule>
                <rule name="Imported Rule 7">
                    <match url="^home/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=home&amp;user={R:1}" appendQueryString="false" />
                </rule>
                <rule name="rule 1k" stopProcessing="true">
                    <match url="^ase/([^/]*)$" />
                    <action type="Rewrite" url="/ase/index.php?url={R:1}" />
                </rule>
<rule name="Imported Rule 8">
<match url="^habbo-imaging/badge/([^/]+)" />
<action type="Rewrite" url="/habbo-imaging/badge.php?badge={R:1}" />
</rule>
<rule name="Imported Rule 9">
<match url="^habbo-imaging/head/([^/]+)" />
<action type="Rewrite" url="/habbo-imaging/head.php?figure={R:1}" />
</rule>
        <rule name="Imported Rule 10">
          <match url="^gamedata/habbopages/forums" ignoreCase="false" />
          <action type="Rewrite" url="gamedata/habbopages/forums.txt" appendQueryString="false" />
        </rule>
                <rule name="Imported Rule 11">
          <match url="^gamedata/habbopages/chat/commands" ignoreCase="false" />
          <action type="Rewrite" url="gamedata/habbopages/chat/commands.txt" appendQueryString="false" />
        </rule>

        <rule name="Imported Rule 12">
          <match url="^gamedata/habbopages/chat/options" ignoreCase="false" />
          <action type="Rewrite" url="gamedata/habbopages/chat/options.txt" appendQueryString="false" />
        </rule>
                <rule name="RequestBlockingRule1" stopProcessing="true">
                    <match url=".*" />
                    <conditions>
                        <add input="{HTTP_USER_AGENT}" pattern="Wordpress" />
                    </conditions>
                    <action type="CustomResponse" statusCode="403" statusReason="Forbidden: Access is denied." statusDescription="You do not have permission to view this directory or page using the credentials that you supplied." />
                </rule>
                </rules>
        </rewrite>
    </system.webServer>
</configuration>
 

Central

Imagination is more important than knowledge.
Feb 22, 2015
709
107
Go to app/class-users.php, find Hk and replace the link in there, maybe something with stafflogin in and replace it with the hk link.
 
May 1, 2015
470
154
What exactly am i replacing?

Code:
final public function loginHK()
        {
            global $template, $_CONFIG, $core;
           
            if(isset($_POST['login']))
            {   
                $template->form->setData();
                unset($template->form->error);
               
                if(isset($template->form->username) && isset($template->form->password))
                {
                    if($this->nameTaken($template->form->username))
                    {     
                        if($this->userValidation($template->form->username, $core->hashed($template->form->password)))
                        {
                            if(($this->getInfo($_SESSION['user']['id'], 'rank')) >= 4)
                            {
                                $_SESSION["in_hk"] = true;
                                header("Location:".$_CONFIG['hotel']['url']."/ase/dash");
                                exit;
                            }
                            else
                            {
                                $template->form->error = 'Incorrect access level.';
                                return;
                            }
                        }
                        else
                        {
                            $template->form->error = 'Incorrect password.';
                            return;
                        }
 

Central

Imagination is more important than knowledge.
Feb 22, 2015
709
107
Replace this:
header("Location:".$_CONFIG['hotel']['url']."YOUR HOUSEKEEPING URL");

Don't put in your hotel link in it, put something like /ase/login but your actual hk link.
 
May 1, 2015
470
154
Replace this:
header("Location:".$_CONFIG['hotel']['url']."YOUR HOUSEKEEPING URL");

Don't put in your hotel link in it, put something like /ase/login but your actual hk link.
I've put ase/login
& its still does not work, I've actually had this working from when i last owned my hotel, and now that i switched vps's it's just not working.
 

Central

Imagination is more important than knowledge.
Feb 22, 2015
709
107
Go to your skin then your hk folder, go to your login page and edit it, does it say this:

/ase/index.php?url=login

If it does, then thats your login url.
 

Users who are viewing this thread

Top