Great clean coding. Russian language.
Admin panel:
- Add / Remove categories.
- Add / Delete / Edit items.
- Add / Delete / Edit news.
- Edit / Delete reviews.
- Manage users.
PHP OOP, MySQL
Started on the old forum in December 2012 · view the original in the archive · old links redirect here
Great clean coding. Russian language.
Admin panel:
PHP OOP, MySQL
nice share mate 🙂
E107 Security Team Leader Proudly Support AccountLab Plus Billing Software
bbcode wap-store
arnage wrote: Add in function.php in class MyFunctions something like:
public function bbcode($var) { $var = preg_replace(/*' Yours '*/, $var); // ... and others... return $var; }And where its parsing the input/output add:
$fun->bbcode($var);
thank @anage this nice scripts .wink.
LavalairLavalair.com
bbcode not work
arnage wrote: Add in function.php in class MyFunctions something like:
public function bbcode($var) { $var = preg_replace(/*' Yours '*/, $var); // ... and others... return $var; }And where its parsing the input/output add:
$fun->bbcode($var);
I have made the code in the functions.php
public function bbcode($var) { $var = preg_replace("/[img=(.?)](.?)[/img]/i","<img src="\1"/>",$var);
$var=preg_replace("/[b](.?)[/b]/i","\1", $var); $var=preg_replace("/[i](.?)[/i]/i","\1", $var); $var=preg_replace("/[u](.?)[/u]/i","\1", $var); $var=preg_replace("/[big](.?)[/big]/i","\1", $var); $var=preg_replace("/[small](.*?)[/small]/i","\1", $var);
//$var = ereg_replace("http://[A-Za-z0-9./=?-_]+","<a href="\0">\0</a>", $var); $var = str_replace("rn","[br/]",$var); if(substr_count($var,"[br/]")<=60){ $var = str_replace("[br/]"," ",$var); } $var = str_replace("domain1.net","domain2.net",$var); $var = str_replace("www.domain3.net","www.domain4.net",$var); return $var; }
and I put this code $fun->bbcode($var); in catalog.php
require_once ('_incfiles/config.php');
define('PATH', ROOT.'/catalog.php');
echo ' **Name:** '.$fun->utf($row['name']).' **Price:** '.$row['money'].' $ **Description:** '.$fun->utf($row['text']).' be to=> **Description:** '.$fun->bbcode($var).' Are you sure you want to purchase this product?}
but it does not work
LavalairLavalair.com
the $var in $fun->bbcode($var) is just an example. you need to change $var to your Variable name.