Jump to content
Dragos

Shell Master 1402 - shell generator

Recommended Posts

Posted

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 in


private $_shell_settings;

sa pui un switch inloc de atatea "if-uri" pentru


function sm_execute($resource)
function sm_setopt(&$resource, $option, $value)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.



×
×
  • Create New...