Been working on SierraCMS 3.0 (complete recode and more features)
- don't worry I'll add the htaccess so it's just me.php


PHP Code:
<?php
/*#########################
*# SierraCMS # Quackster #
*#########################*/
/*
* Define class path
*/
define("CLASS_PATH", "classes/");
/*
* Define classes
*/
$includeFiles = array();
$includeFiles[] = "tpl.class.php";
$includeFiles[] = "config.class.php";
/*
* Include all classes
*/
foreach ($includeFiles as $fileName)
{
include(CLASS_PATH . $fileName);
}
/*
* Get functions
*/
function getConfiguration()
{
return new Config();
}
function getTemplate()
{
return new Template();
}
/*
* Handy variables
*/
$config = getConfiguration();
$tpl = getTemplate();
/*
* Handy functions
*/
function myHotelURL()
{
$url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
return 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/";
}
?>
PHP Code:
<?php
/*#########################
*# SierraCMS # Quackster #
*#########################*/
class Template
{
private $pageData;
private $templateStyle;
public function __construct()
{
/*
* Use a variable the file is included to.
*/
global $config;
/*
* Define variable(s)
*/
$this->templateStyle = $config->getConfigValue("template.style");
}
public function templateError($message)
{
die("<p><h2>Template Error!</h2></p><p>" . $message . "</p>");
}
public function getHeader($pageName)
{
if (empty($this->templateStyle))
{
$this->templateError("Your template name cannot be blank!");
}
else
{
$this->pageData = file_get_contents("tpl/" . $this->templateStyle . "/headers/" . $pageName . "_header.tpl");
}
}
public function getPage($pageName)
{
if (empty($this->templateStyle))
{
$this->templateError("Your template name cannot be blank!");
}
else
{
$this->pageData = file_get_contents("tpl/" . $this->templateStyle . "/" . $pageName . ".tpl");
}
}
public function setParam($key, $value)
{
$this->pageData = str_replace("[" . $key . "]", $value, $this->pageData);
}
public function output()
{
echo $this->pageData;
}
public function returnOutput()
{
return $this->pageData;
}
}
?>

Originally Posted by
jomp16
Hey Quackster, I was looking in the Kekomundo and found this emulator to client crypto made in java, open source, He stopped the project, I will pass the download link for you to analyze and add in the Sierra Emulator
Emulator:
EnergyFREE.zip
Database:
energyfree.sql
VirusTotal:
https://www.virustotal.com/file/c9b4...is/1335624037/
The emulator runs only in RELEASE63-201201190922-633225503
In CMS or Client that you have put this:
Code:
<?php
$Socket = fsockopen('127.0.0.1', 4001);
fwrite($Socket, "CONNECT,Goir,127.0.0.1");
fclose($Socket);
?>
Substituting "Goir" for your username (if you do not heap up on localhost) replace 127.0.0.1 with your ip
Thank you I'll look into it, although at the moment I am satisfied.