A RevCMS edit? @Sledless has been on my JoinMe and watched me code some of this, @DesignGod watched me code the majority of this.. Lots of people have watched me code this, considering it's from scratch. The template system is like revs yeah, doesn't mean it's a rev edit.
More screenies...
final public function createSSO($k)
{
global $engine;
$sessionKey = 'RevCMS-'.rand(9,999).'/'.substr(sha1(time()).'/'.rand(9,9999999).'/'.rand(9,9999999).'/'.rand(9,9999999),0,33);
$this->updateUser($k, 'auth_ticket', $sessionKey)...
All that needs doing is on the post make a query select the news id and user id from news comments, if there's one or more rows then stop the query from posting a new comment. Pretty simple.
Assuming you're using MySQL.
<?php
$checkc = mysql_query("SELECT * FROM `cms_news_comments` WHERE `news_id` = '".mysql_real_escape_string($_GET['id'])."' AND `user_id` = '".$_SESSION['user']['id']."'");
if(mysql_num_rows($checkc) >= 1)
{
die("You can only comment once.");
}
?>
Basically December 2013 I made a CMS coded from scratch by myself called SimpleCMS, it didn't have a template engine or anything like that. It supported MySQL because tbh that's all I knew within PHP at the time, now I've learnt MySQL, PDO, MySQLI, OOP, most PHP functions and how it all works...
To fix the ticket error in rev just find where it inserts the auth ticket (can't remember where it is) and make it insert/delete the ticket out of user_tickets. Not hard.
This isn't anything special, it's just an RP emulator I was originally going to release then decided to keep private but now I've decided I cba working on it so yeah. It's not the best, but it sure is more stable than any reality release. It's just an r63 RP emulator based off butterfly.
This is...