Ejemplo n.º 1
0
              *
              * you can set your own autoloader by defining __autoload() before including
              * this file
              * 
              * @param string $classname name of the class
              */
             function __autoload($classname)
             {
                 include str_replace('_', '/', $classname) . '.php';
             }
         }
         $__shell_retval = eval($__shell->getCode());
         if (isset($__shell_retval)) {
             print $__shell->getColour("value");
             if (function_exists("__shell_print_var")) {
                 __shell_print_var($__shell_retval, $__shell->getVerbose());
             } else {
                 if (is_object($__shell_retval) && method_exists($__shell_retval, '__toString')) {
                     echo "Class:" . get_class($__shell_retval) . "\n" . $__shell_retval->__toString();
                 } else {
                     var_export($__shell_retval);
                 }
             }
         }
         ## cleanup the variable namespace
         unset($__shell_retval);
         $__shell->resetCode();
     }
 } catch (Exception $__shell_exception) {
     print $__shell->getColour("exception");
     print $__shell_exception->getMessage();