[REL] AfterCMS | Plus Emulator | PHP7

Manuela

Active Member
May 27, 2016
98
38
Yes it's because of web.config missing, and Manuela, yes you can use a service like that, but it won't be accurate.
Sometimes it doesn't convert all the rules.. but can you explain to me why that wouldn't be accurate?

There are always warnings:
Could anyone tell me how to fix that? :)
I just deleted the following on the enviroment.php

$nojs = get_browser(null, TRUE);
if ($nojs["javascript"] == 1) {
header("Location: " . $main->path . "/nojs.php");
}
Not sure if that's the best to go about it but heck it didn't show anymore.
 

Zaka

Programmer
Feb 9, 2012
471
121
Sometimes it doesn't convert all the rules.. but can you explain to me why that wouldn't be accurate?
Because as you said, it wont convert all the rules etc, which makes it inaccurate to the htaccess you wanted converted.
 

Haid

Member
Dec 20, 2011
363
448
How do I fix that?
If you want to fix it properly find where it's trying to print the "autor" variable and backtrack to see why it's not finding it, is it in the news row in the database?
If you have no idea how to do that you can simply find where it's trying to print "autor" and remove it.
 

Wickd

The first member of the Knights of the Pink Table
Jan 15, 2013
1,936
612
Call me old fashioned but am i the only who preferes the old generic Habbo theme?Don't get me wrong i love that there are new developers coming with brand new CMS ( aren't we all tired of good old Rev ) just not so much keen on the design concept.
PHP?We still haven't moved on from that?
Anyways, great job & big contribution to our community.Thanks for the share!
 

MayoMayn

BestDev
Oct 18, 2016
1,423
683
Call me old fashioned but am i the only who preferes the old generic Habbo theme?Don't get me wrong i love that there are new developers coming with brand new CMS ( aren't we all tired of good old Rev ) just not so much keen on the design concept.
PHP?We still haven't moved on from that?
Anyways, great job & big contribution to our community.Thanks for the share!
What else would you code your CMS in? Node.js, Python? People just lack of coding capacity when they try to release a CMS written in PHP, nothing else. Emulators should definitely move on from MySQL to NoSQL.

Sent from my SM-G928F using Tapatalk
 

MayoMayn

BestDev
Oct 18, 2016
1,423
683
I don't know why u guys are hating on Php, it's improving all the time
Still none of those kids can provide any arguments for why they think PHP is deprecated/shit compared to other languages.

C is better, because well, everything is written in C as it is the "mother" language to if not every programming language, but I'd still choose PHP over ASP.net and Node.js any time.

Sent from my SM-G928F using Tapatalk
 

TLord

New Member
Mar 3, 2017
1
0
Customer loads up to 100% only by VPS, but then restarts to the start from 0 to 100% again.
By domain charges up to 76%

Help me
Forgive me for bad English, I'm Brazilian!
 
Customer loads up to 100% only by VPS, but then restarts to the start from 0 to 100% again.
By domain charges up to 76%

Help me
Forgive me for bad English, I'm Brazilian!
 

richtheclever

New Member
May 8, 2015
20
1
Hello guys, so i put everything in htdocs folder and edited the config and client but when i try to log in, i can't, it always says invalid username or password. can anyone help me please?
its like this:


Second thing is, please have a look at my client.php too just in case i cannot enter client when the problem above fixed.
thanks in advance!


This is my config.php
<?php

$main = (object) array(
"path" => " ", # Sin / al final
"title" => "TITLE",
"swf" => " ",
"baseURL" => " ",
"min_rank" => "6",
"fb_account" => "MemesAhora",

"mysql" => array(
"host" => "localhost",
"db" => "dbname",
"user" => "root",
"pass" => "",
)
);

?>

This is my client.php
<?php

require 'protected/environment.php';

if(!is_logged()){
header("Location: ".$config->path."/");
}

$ip = getRealIP();

$ticket = 'Habbot-'.rand(9,999).'/'.substr(sha1(time()).'/'.rand(9,9999999).'/'.rand(9,9999999).'/'.rand(9,9999999),0,33);

$query = $db->query("UPDATE users SET auth_ticket='".$ticket."', ip_last='".$ip."' WHERE id='".$row['id']."'");

?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title><?=$main->title;?>: Jugar</title>
<link rel="stylesheet" href="<?=$main->path;?>/public/css/client.css" type="text/css">
<link rel="shortcut icon" href="<?=$main->path;?>/favicon.gif">
<script type="text/javascript" src="<?=$main->path;?>/public/js/swfobject.js"></script>
</head>
<body>
<script type="text/javascript">
var BaseUrl = "<?=$main->baseURL;?>";
var flashvars =
{
"client.starting" : "Espere por favor, <?=$main->title;?> está cargando",
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "0",
"connection.info.host" : "<?=$main->mysql['IP'];?>",
"connection.info.port" : "30000",
"site.url" : "<?=$main->path;?>",
"url.prefix" : "<?=$main->path;?>",
"hotelview.banner.url" : "<?=$main->path;?>/game/rs4.php",
"client.reload.url" : "<?=$main->path;?>/client.php",
"client.fatal.error.url" : "<?=$main->path;?>/client.php",
"client.connection.failed.url" : "<?=$main->path;?>/client.php",
"external.variables.txt" : "<?=$main->swf;?>/gamedata/external_variables.txt",
"external.texts.txt" : "<?=$main->swf;?>/gamedata/external_flash_texts.txt",
"productdata.load.url" : "<?=$main->swf;?>/gamedata/productdata.txt",
"furnidata.load.url" : "<?=$main->swf;?>/gamedata/furnidata.xml",
"use.sso.ticket" : "1",
"sso.ticket" : "<?=$ticket; ?>",
"processlog.enabled" : "0",
"flash.client.url" : BaseUrl,
"flash.client.origin" : "popup",
"forward.type" : "2",
"forward.id" : "<?php if(isset($_GET['room'])){echo $_GET['room'];}?>",
};
var params =
{
"base" : BaseUrl + "/",
"allowScriptAccess" : "always",
"menu" : "false"
};
swfobject.embedSWF(BaseUrl + "/Habbo.swf", "client", "100%", "100%", "10.0.0", "{swf_folder}/expressInstall.swf", flashvars, params, null);
</script>

<div id="client"></div>
</body>
</html>

The ones in RED color are the one that i changed. Also my db password is none, so i left it empty.
 
Last edited:

Users who are viewing this thread

Top