Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Please do not post a message for the purpose of insulting, incitement to hatred, sexual remarks and any other which does not respect our terms of use !
Sign in to follow this  
Stown

 addons Forum pour SystemCMS

Recommended Posts

Premium

Bonsoir, ce soir je vous partage le forum pour SystemCMS (je l'avais déjà partagé il y a 2-3 ans) mais il ne comportait pas les différentes catégories !

 

Ce forum contient les différentes catégories, par contre le code est dégueulasse (il date de +/- 1 an)

 

Fichier : ( si quelqu'un peut faire un scan, se serait cool :p )

Please login or register to see this link.

 

Screen :

 

1 - 

Please login or register to see this link.

2- 

Please login or register to see this link.

3- 

Please login or register to see this link.

4- 

Please login or register to see this link.

 

Fonction à ajouter :

function HabboText($str, $advanced=false) 
			{
			$str = stripslashes($str);
			if($advanced != true){ $str = htmlspecialchars($str,ENT_COMPAT,"UTF-8"); }
			return $str;
			}
			
		function getContent($strKey)
			{
		$tmp = mysql_query("SELECT contentvalue FROM site_content WHERE contentkey = '".Filter($strKey)."' LIMIT 1") or die(mysql_error());
		$tmp = mysql_fetch_assoc($tmp);
		return $tmp['contentvalue'];
			}
		function IsUserOnline($intUID)
			{
		$result = mysql_query("SELECT online FROM users WHERE id = '".$user['id']."' LIMIT 1") or die(mysql_error());
		$timeout = 600; // 10 minutes ?

		if(mysql_num_rows($result) < 1){
			return false;
		} else {
			$result = mysql_fetch_array($result);
			$result = $result[0];
			$result = $result + $timeout;
			if($result >= time()){
				return true;
			} else {
				return false;
			}
			}
			}
			
		function Filter($str, $advanced=false) 
			{
			if($advanced == true){ return mysql_real_escape_string($str); }
			$str = mysql_real_escape_string(htmlspecialchars($str));
			return $str;
			}
			
		function mysql_evaluate($query, $default_value="undefined") 
			{
		$result = mysql_query($query) or die(mysql_error());

		if(mysql_num_rows($result) < 1){
		return $default_value;
			} else {
		return mysql_result($result, 0);
			}
			}
			
		function bbcode_format($str)
			{
			$simple_search = array(
									'/\[b\](.*?)\[\/b\]/is',
									'/\[i\](.*?)\[\/i\]/is',
									'/\[u\](.*?)\[\/u\]/is',
									'/\[s\](.*?)\[\/s\]/is',
									'/\[quote\](.*?)\[\/quote\]/is',
									'/\[link\=(.*?)\](.*?)\[\/link\]/is',
									'/\[url\=(.*?)\](.*?)\[\/url\]/is',
									'/\[img\](.*?)\[\/img\]/is',
									'/\[youtube\](.*?)\[\/youtube\]/is',
									'/\[center\](.*?)\[\/center\]/is',
									'/\[color\=(.*?)\](.*?)\[\/color\]/is',
									'/\[size=small\](.*?)\[\/size\]/is',
									'/\[size=large\](.*?)\[\/size\]/is',
									'/\[code\](.*?)\[\/code\]/is',
									'/\[habbo\=(.*?)\](.*?)\[\/habbo\]/is',
									'/\[room\=(.*?)\](.*?)\[\/room\]/is',
									'/\[group\=(.*?)\](.*?)\[\/group\]/is'
									);

			$simple_replace = array(
									"<b>$1</b>",
									"<i>$1</i>",
									"<u>$1</u>",
									"<s>$1</s>",
									"<div class=\"bbcode-quote\">$1</div>",
									"<a href=\"$1\">$2</a>",
									"<a href=\"$1\">$2</a>",
									"<img src=\"$1\">$2</img>",
									"<iframe width=\"480\" height=\"390\" src=\"$1\" frameborder=\"0\" allowfullscreen>$2</iframe>",
									"<center>$1</center>",
									"<span style=\"color: $1;\">$2</span>",
									"<span style=\"font-size: 9px;\">$1</span>",
									"<span style=\"font-size: 14px;\">$1</span>",
									"<pre>$1</pre>",
									"<a href=\"./home/$1/id\">$2</a>",
									"<a onclick=\"roomForward(this, '$1', 'private'); return false;\" target=\"client\" href=\"./client?forwardId=2&roomId=$1\">$2</a>",
									"<a href=\"./groups/$1/id\">$2</a>"
									);

			$str = preg_replace ($simple_search, $simple_replace, $str);
 
			return $str;
			}

 

 

Si il y a un soucis, contactez moi sur skype  : narzo.skype

Share this post


Link to post
Share on other sites
Premium
il y a 2 minutes, noagamingx a dit :

Scan : 

Please login or register to see this link.

(un trojan script detecté :o )

"Jiangmin" mdr, ya aucun trojan, c'est que des fichiers php ainsi que la web-gallery

Share this post


Link to post
Share on other sites
Premium

 

Il y a 2 heures, Kurumi.Dev a dit :

Merci du partage ^^

mais pourquoi au pire, tu actualise pas la ligne de code, pour PDO ? 

^^

Derien 

J'avais utilisé directement SystemCMS de base donc j'ai pas pu refaire tous les requêtes en pdo

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...