Moderators Dragos Posted March 30, 2012 Moderators Report Posted March 30, 2012 Am decis ca proiectul Shell Master sa fie pana la urma un generator de shell-uri. Astfel, am venit cu o clasa simpla, dar eficienta.http://dragosgaftoneanu.com/download/shellmaster.txt Quote
Robert1995 Posted March 31, 2012 Report Posted March 31, 2012 Poti sa te apuci de refactoring, toate functiile trebuie sa fie publice, php 5 standards.Toate setarile de baza ar trebui sa fie facute din __construct(). function sm_start() { return array( 'sm1402'=>1, 'sm1402-setopt'=>"", 'sm1402-shell'=>"", 'sm1402-mysqldatabase'=>"", 'sm1402-eval'=>"" ); }sa fie stocate inprivate $_shell_settings;sa pui un switch inloc de atatea "if-uri" pentru function sm_execute($resource)function sm_setopt(&$resource, $option, $value) Quote