Commit 3769f736 authored by Toldierone's avatar Toldierone

first release

parent f938eeae
Pipeline #2925349 skipped
<?php
require_once("allfunctions.php");
require_once("backend/allfunctions.php");
needsuser();
if ($_POST['async_token'] == $_SESSION['async_token']) {
......@@ -20,8 +20,8 @@ EOSQL;
EOSQL;
}
$GLOBALS['mysqli']->query($sql);
} else user_error("bad post");
} else /*user_error("bad post") */;
} /* async_token endif */ else {
user_error("bad token");
/* user_error("bad token") */;
}
......@@ -4,7 +4,7 @@ ini_set('session.cookie_httponly', 1);//make cookie inaccessible to javascript,
//let's stick the database shit in here for now
require_once('sql_data.php');
$mysqli = new mysqli("localhost", $username, $password, $database);
date_default_timezone_set("America/Chicago");
date_default_timezone_set("UTC");
session_start();
if (!isset($_SESSION['SERVER_GENERATED_SID'])) {
session_destroy();
......@@ -34,7 +34,7 @@ Additional info in database\r
--------\r
This is an automated message\r
EOMSG;
mail("youremail@example.com", "Clop Session Hijacking Prevented", $mailmsg);
mail("youremail@example.com", "ReClop Session Hijacking Prevented", $mailmsg);
*/
session_destroy();
......
......@@ -151,7 +151,7 @@ EOSQL;
} else if ($rs['government'] == "Oppression") {
$errors[] = "That Oppressive government is unable to accept deals!";
} else if ($rs['nation_id'] == $_SESSION['nation_id']) {
$errors[] = "Clop, clop, clop...";
$errors[] = "Clop, Clop, Clop...";
} else {
$sql=<<<EOSQL
INSERT INTO deals (fromnation, tonation) VALUES ('{$_SESSION['nation_id']}', '{$rs['nation_id']}')
......
......@@ -5,7 +5,7 @@ $buildings = array();
$resources = array();
$weapons = array();
$armor = array();
$regiontypes = array(0 => "The Heavily Fortified Island of Admin", 1 => "Saddle Arabia", 2 => "Zebrica", 3 => "Burrozil", 4 => "Przewalskia");
$regiontypes = array(0 => "Hades", 1 => "Saddle Arabia", 2 => "Zebrica", 3 => "Burrozil", 4 => "Przewalskia");
$subregiontypes = array(0 => "", 1 => "North ", 2 => "Central ", 3 => "South ");
$forcetypes = array(1 => "Cavalry", 2 => "Tanks", 3 => "Pegasi", 4 => "Unicorns", 5 => "Naval", 6 => "Alicorns");
$nationinfo['regionname'] = $regiontypes[$nationinfo['region']];
......
......@@ -20,7 +20,7 @@ $display['email'] = htmlentities($userinfo['email'], ENT_SUBSTITUTE, "UTF-8");
$display['flag'] = htmlentities($userinfo['flag'], ENT_SUBSTITUTE, "UTF-8");
$funstatus = ($userinfo['funmode'] == 1) ? "checked" : "";
$_SESSION['async_token'] = rand();//lel, gotta start with something
$_SESSION['async_token'] = sha1(rand());
if (!$errors) {
if ($_POST['changedescription']) {
......
......@@ -4,7 +4,7 @@ $getpost = array_merge($_GET, $_POST);
foreach ($getpost as $key => $value) {
$mysql[$key] = $GLOBALS['mysqli']->real_escape_string($value);
}
$regiontypes = array(0 => "The Heavily Fortified Island of Admin", 1 => "Saddle Arabia", 2 => "Zebrica", 3 => "Burrozil", 4 => "Przewalskia");
$regiontypes = array(0 => "Hades", 1 => "Saddle Arabia", 2 => "Zebrica", 3 => "Burrozil", 4 => "Przewalskia");
$subregiontypes = array(0 => "", 1 => "North ", 2 => "Central ", 3 => "South ");
$forcetypes = array(1 => "Cavalry", 2 => "Tanks", 3 => "Pegasi", 4 => "Unicorns", 5 => "Naval", 6 => "Alicorns");
$buildings = array();
......
<?php
require_once('sql_data.php');
$mysqli = new mysqli("localhost", $username, $password, $database);
date_default_timezone_set("America/Chicago");
date_default_timezone_set("UTC");
session_start();
if (!isset($_SESSION['SERVER_GENERATED_SID'])) {
session_destroy();
......
<?php
function getpassword() {
$pass = file_get_contents('/tmp/cloppass.txt') or die('Password file not found');
$pass = file_get_contents('/home/u952288033/db_pass.txt') or die('Password file not found');
return (string)$pass;
}
$username = 'clopper';
$username = 'u952288033_clopu';
$password = getpassword();
$database = 'clopus_clop';
$database = 'u952288033_clopd';
This diff is collapsed.
......@@ -3,7 +3,7 @@ echo <<<EOFORM
</div>
</div>
</br><hr>
<p style="font-size: small;">Get source code at: <a href="https://gitlab.com/Toldierone/ReClop" target="_blank">GitLab project Repo</a>. Released under WTFPL license. License may change in future releases without prior notice</p>
<p style="font-size: small;">Get source code at: <a href="https://gitlab.com/Toldierone/ReClop" target="_blank">GitLab project Repo (branch release)</a>. Released under WTFPL license. License may change in future releases without prior notice</p>
</body>
</html>
EOFORM;
......
<?php
require_once("backend/allfunctions.php");
needsuser();
include("header.php");
echo <<<EOTXT
I don't have all that much ideas so far
<ul>
<li>A proper password hashing mechanism</li>
<li>Shorten newbie peroid to 7-14 days</li>
<li>Maybe do some tweaks to war system, i dunno</li>
<li>Finish request feature form and provide voting system :)</li>
<li>Notification for alliance messages, much like with user messages</li>
<li>More async UI, maybe</li>
<li>Extend troop names charset to ASCII 32-126</li>
<li>Bring back nation transfers (but not nation burning)</li>
</ul>
EOTXT;
......@@ -20,7 +20,7 @@ Malls are extremely high reward, high risk.<br/>
<b>Environmental facilities.</b> If you're running a very advanced build with many, many buildings over the environmental soft caps and five of each empire's environmental facility, guess what happens
when you run out of energy?<br/>
<b>To survive in the long term, it is highly advisable to log in twice a day (a few minutes in the morning and at night) and pay attention to your Reports.</b><br/>
If you need to go on vacation or take a break from >CLOP for other reasons, <b>go into stasis mode</b> under User Info.<br/>
If you need to go on vacation or take a break from >ReClop for other reasons, <b>go into stasis mode</b> under User Info.<br/>
<br/>
<center><b>Basics</b></center>
If you just made an account, the first thing you want to do is build farms, oil wells, or copper mines.
......@@ -41,7 +41,7 @@ If you don't have enough energy to run your factories, your actual GDP will be m
Neither your buildings nor your military will use resources that you gained automatically during a tick in the same tick that you gained them.
Make sure that you have enough in your stockpiles to feed all your upkeep needs at the <b>beginning</b> of a tick.<br/>
<center><b>Trade and Regions</b></center>
&gt;CLOP is a game of trading.<br/>
&gt;ReClop is a game of trading.<br/>
The only source of farm products is Burrozil. Farm products keep ponies happy, and you don't want unhappy ponies.<br/>
The only source of minerals is Zebrica. Minerals are used to make buildings and factory parts for buildings. Some of the amounts required are brutally high.<br/>
The only source of oil is Saddle Arabia. Oil makes energy. Lots and lots of things need energy.<br/>
......@@ -60,7 +60,7 @@ business there. Switch to a Free Market to make use of the Marketplace less cost
<center><b>Game Balance</b></center>
As your nation grows, your ponies will become more demanding. Your armies will have expensive upkeep.
And, of course, one major market shortage will bring you to your knees unless you have huge stockpiles.<br/>
This is all intentional. &gt;CLOP is not a game of watching your numbers go up uninterrupted and crushing everypony you see just because you played longer than them. It is also not a game of mercy.
This is all intentional. &gt;ReClop is not a game of watching your numbers go up uninterrupted and crushing everypony you see just because you played longer than them. It is also not a game of mercy.
Anypony who's had time to get his hooves on the ground is fair game. As are you. Waggle your e-horsecock long enough in this game and somepony's likely to stick it in a meatgrinder.
EOFORM;
include("footer.php");
......
......@@ -188,7 +188,7 @@ color: #FFFFFF;
}
</script>
<title>{$extratitle}&gt;CLOP, the game of geoponitics</title>
<title>{$extratitle}&gt;ReClop, the game of ded</title>
</head>
<body alink="#00ae0e" link="#00ae0e" vlink="#1f8001">
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
......@@ -200,8 +200,9 @@ echo <<<EOFORM
EOFORM;
}
echo <<<EOFORM
<center>Get your daily dose of ded here</center>
<center><span id="topmessage">&quot;{$topmessage}&quot;</span></center>
<center>Discuss &gt;CLOP and its sequel on the <a href="http://8ch.net/compounds/" target="_new_win">8chan board</a>!</center>
<center>Discuss &gt;ReClop on the <a href="http://8ch.net/compounds/" target="_new_win">8chan board</a></center>
EOFORM;
if ($errors) {
$errormessages.=<<<EOFORM
......@@ -256,7 +257,7 @@ if ($_SESSION['user_id']) {
echo <<<EOFORM
<nav class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<a class="navbar-brand" href="index.php">&gt;CLOP</a>
<a class="navbar-brand" href="index.php">&gt;ReClop</a>
</div>
<ul class="nav navbar-nav">
<li class="dropdown"><a class="dropdown-toggle" href="messages.php">Messages <span class="badge">{$messagenumber}</span></a></li>
......@@ -309,7 +310,14 @@ echo <<<EOFORM
</li>
<li class="dropdown"><a class="dropdown-toggle" href="forcesyourway.php">Incoming <span class="badge">{$incomingnumber}</span></a></li>
<li class="dropdown"><a class="dropdown-toggle" href="chat.php">Chat</a></li>
<!--<li><a href="https://gum.co/CLOPGame">Donate</a></li>-->
<li class="dropdown">
<a class="dropdown-toggle" href="#">Feedback <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="requestfeature.php">Request Feature/Submit Bug</a></li>
<li><a href="futuredirections.php">Future Directions</a></li>
<li><a href="submitlogo.php">Submit Logo</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right pull-right">
{$nationline}
......@@ -341,7 +349,7 @@ EOFORM;
echo <<<EOFORM
<nav class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<a class="navbar-brand" href="index.php">&gt;CLOP</a>
<a class="navbar-brand" href="index.php">&gt;ReClop</a>
</div>
<ul class="nav navbar-nav navbar-right pull-right">
<li><a>Server time: {$currenttime}</a></li>
......
......@@ -2,9 +2,12 @@
include_once("backend/allfunctions.php");
include("header.php");
echo <<<EOFORM
<center><h4>Welcome to lel ded game</h4>
&gt;CLOP is a game of war, politics, markets, deals, and ponies. Join an alliance, build an empire, and rule your equines how you like.<br/>
Be warned- what is easily established is easily overthrown, and if you displease or neglect your nation, you will no longer have it.<br/>
<center><h4>Welcome to &gt;ReClop, an unofficial spiritual succesor to &gt;CLOP</h4>
&gt;CLOP was a game of war, politics, markets, deals, and ponies. Where you could join an alliance, build an empire, and rule your equines how you like.
<br>&gt;ReClop is hosted to keep the legacy on. Ded game, ahoy!
<br><br>The rest of original &gt;CLOP text below:
<br>
Be warned- what is easily established is easily overthrown, and if you displease or neglect your nation, you will no longer have it.<br>
Featuring frequent ticks and a robust trading system, &gt;CLOP is an addictive, maddening experience for aspiring politicians and horse lovers alike.
</center>
EOFORM;
......
......@@ -13,7 +13,7 @@ function submitForm(e) {
function AJAXForm(data) {
var xhr = new XMLHttpRequest();
xhr.open('post', 'backend/async_userinfo.php', true);
xhr.open('post', 'async_userinfo.php', true);
xhr.withCredentials = true;
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send(encodeURI(data));
......
<html><head><title>New Player Guide</title></head><body>
<center><h3>Meta-Guide for New Players</h3></center>
<br/>
Welcome to &gt;CLOP! In this meta-guide, I shall focus less on mechanics and more on letting new players know how to to get started.
Welcome to &gt;ReClop! In this meta-guide, I shall focus less on mechanics and more on letting new players know how to to get started.
This game is much harder than it appears, and even experienced players can and do die off.<br/>
<br/>
<b>1.</b> Read everything.<br/>
<br/>
There are games in which you can just ignore things, because the game is hand-holdy enough that victory is assured anyway. >CLOP is not one of them.
Read every piece of text you come across in >CLOP.
There are games in which you can just ignore things, because the game is hand-holdy enough that victory is assured anyway. >ReClop is not one of them.
Read every piece of text you come across in >ReClop.
</body></html>
\ No newline at end of file
......@@ -32,7 +32,7 @@ Leave this field blank (stops crawler spambots) <input name="username" maxlength
<input type="text" class="form-control" id="realusername" placeholder="Username" name="realusername" maxlength="25" value="{$display['realusername']}"/>
</div>
<div class="form-group">
<label for="password">Password</label>
<label for="password">Password</label><p>I sure hope you don't use the same password for every website you register on!</p>
<input type="password" class="form-control" id="password" placeholder="Password" name="password" maxlength="25"/>
</div>
<div class="form-group">
......@@ -64,7 +64,7 @@ Leave this field blank (stops crawler spambots) <input name="username" maxlength
{$subregionlist}
</select>
</div>
<input type="submit" class="btn btn-success" value="Join >CLOP"/>
<input type="submit" class="btn btn-success" value="Join >ReClop"/>
</form>
EOFORM;
include("footer.php");
......
......@@ -9,14 +9,14 @@ EOFORM;
$secondcolumn = "Statues";
} else if ($mode == "longevity") {
$topline = <<<EOFORM
<center>A nation's age has nothing to do with how long its owner has been playing &gt;CLOP.</center>
<center>A nation's age has nothing to do with how long its owner has been playing &gt;ReClop.</center>
EOFORM;
$secondcolumn =<<<EOFORM
Age</th><th>Creation Date
EOFORM;
} else {
$topline = <<<EOFORM
<center>These rankings are only for GDP made from factories and satisfaction! There are plenty of other ways to make money in &gt;CLOP. Take these rankings with a grain of salt.</center>
<center>These rankings are only for GDP made from factories and satisfaction! There are plenty of other ways to make money in &gt;ReClop. Take these rankings with a grain of salt.</center>
EOFORM;
$secondcolumn = "GDP Last Turn";
}
......
<?php
require_once("backend/allfunctions.php");
needsuser();
include("header.php");
echo <<<EOTXT
Hold on your horses! This page is not complete yet. PM me if you have a dire need.
EOTXT;
......@@ -3,15 +3,15 @@ include_once("backend/allfunctions.php");
$extratitle = "Rules - ";
include("header.php");
echo <<<EOFORM
&gt;CLOP has only two major rules:<br/><br/>
&gt;ReClop has only two major rules:<br/><br/>
<b>1.</b> <font size="4">One person, one account.</font><br/>
The cooperative aspects of this game and the vagaries of the market can be frustrating, even maddening.
You will probably be tempted to make more accounts to get the things you need.
If you succumb to these temptations, you <strong>WILL</strong> be banned. No exceptions. Get some friends instead. Or take over other nations through war.</br> If you say that it's your brother or
your cousin or whoever sharing the computer or home network, <b>the admin will not believe you</b>. If there really are two of you, other players can help you prove it through Skype.
And if you've got someone who plays &gt;CLOP coming over to your house, <b>warn the admin first!</b>
And if you've got someone who plays &gt;ReClop coming over to your house, <b>warn the admin first!</b>
<br/>
You can play on a public network with other >CLOP players, but don't create new accounts on a public computer. This includes coffee shop wi-fi networks, school networks, and libraries.
You can play on a public network with other >ReClop players, but don't create new accounts on a public computer. This includes coffee shop wi-fi networks, school networks, and libraries.
Unless people have connected from residential IPs before, I can't know whether they're actually multiple people or your imaginary friends.
If there's any situation in which there's more than one account generated by one outward-facing IP address,
it's banland for the IP and possibly deletion for the accounts.<br/>
......@@ -24,7 +24,7 @@ Whatever clever scheme you've devised, it's already been thought of.
"If I say that-" The admin doesn't want to hear your excuses. "Maybe if I make multiples and buy from someone I hate, the admin will ban that-" No, the admin's not that stupid.
"Well, if I make one account at school and the other at home-" The admin will figure it out sooner or later, and the admin is a fucking Nazi about this shit. <b>Don't make multiple accounts.</b><br/>
<br/>
<b>No account sharing between >CLOP players.</b> Two people on one account is fine, two people sharing two accounts is not. Sharing passwords is a bad idea anyway. "I was just taking care of it
<b>No account sharing between >ReClop players.</b> Two people on one account is fine, two people sharing two accounts is not. Sharing passwords is a bad idea anyway. "I was just taking care of it
for..." Banned. "It's my brother's account, I just log in to..." Banned. "I logged on as him so I could..." Banned.<br/><br/>
<s><b>2.</b> No computer shenanigans.</s><br/>
Everybody has donor status now! Hooray! Go wild!</br>
......@@ -33,7 +33,7 @@ Toggle funmode in user settings to see all images, scripts, etc.
<br/><br/>
<b>3.</b> Leave real life out of it.<br/>
If you're mad enough to dox someone over a browser pony game, it's time to re-evaluate your life's priorities.<br/><br/>
&gt;CLOP is chock-full of 4channers and other weirdos whose idea of a good time involves a small horse and a tube of KY.
&gt;ReClop is chock-full of 4channers and other weirdos whose idea of a good time involves a small horse and a tube of KY.
<b>Do not give any of these people your personal information, ever, especially if you actually own a stable.</b><br/><br/>
<b>Other than these, there are no rules.</b> Take over the economy, manipulate the market, lie extravagantly, gang up on whoever you want.
EOFORM;
......
<?php
require_once("backend/allfunctions.php");
needsuser();
include("header.php");
echo <<<EOTXT
Hold on your horses! This page is not complete yet. PM me if you have a dire need.
EOTXT;
......@@ -10,7 +10,7 @@ EOFORM;
}
if ($userinfo['stasismode']) {
echo <<<EOFORM
<center><b>You are in stasis mode! Leave stasis to play >CLOP.</b></center>
<center><b>You are in stasis mode! Leave stasis to play >ReClop.</b></center>
EOFORM;
}
echo <<<EOFORM
......
......@@ -10,7 +10,7 @@ EOFORM;
} else {
if ($userinfo['donator']) {
echo <<<EOFORM
<center><b>This user has donated to >CLOP!</b></br><b style="color: #1CC51C;">>he sure did</b></center>
<center><b>This user has donated to >ReClop!</b></br><b style="color: #1CC51C;">>he sure did</b></center>
EOFORM;
}
if ($userinfo['stasismode']) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment