From a2f5fc53b7a02947ecb96082594a045ad94d1e65 Mon Sep 17 00:00:00 2001 From: Felipe Date: Mon, 9 Apr 2012 18:12:36 -0300 Subject: [PATCH 1/2] added a missing 'enter' to a message --- .gitignore | 1 + mind3rd/API/classes/MindLog.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) mode change 100755 => 100644 .gitignore diff --git a/.gitignore b/.gitignore old mode 100755 new mode 100644 index a1700b3..e22b6d2 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,4 @@ mind3rd/API/logs/* .project nbproject nbproject/* +/.settings/ \ No newline at end of file diff --git a/mind3rd/API/classes/MindLog.php b/mind3rd/API/classes/MindLog.php index 62eacf6..5eb7f8e 100644 --- a/mind3rd/API/classes/MindLog.php +++ b/mind3rd/API/classes/MindLog.php @@ -38,7 +38,7 @@ class MindLog { case self::LOG_TYPE_USER:{ if(strtolower($_MIND->conf['log_user_interaction'])){ if(!@file_put_contents(_MINDSRC_.\LOGS_DIR.'user.log', $msg."\n", FILE_APPEND)){ - echo "ERROR: failed trying to create log! please, check the writting permissions for "._MINDSRC_.\LOGS_DIR."!"; + echo "ERROR: failed trying to create log! please, check the writting permissions for "._MINDSRC_.\LOGS_DIR."!\n"; } } break; @@ -46,14 +46,14 @@ class MindLog { case self::LOG_TYPE_PROJECT:{ if(strtolower($_MIND->conf['log_project_interaction'])){ if(@file_put_contents(_MINDSRC_.\LOGS_DIR.'project.log', $msg."\n", FILE_APPEND)){ - echo "ERROR: failed trying to create log! please, check the writting permissions for "._MINDSRC_.\LOGS_DIR."!"; + echo "ERROR: failed trying to create log! please, check the writting permissions for "._MINDSRC_.\LOGS_DIR."!\n"; } } break; } default:{ if(!@file_put_contents(_MINDSRC_.\LOGS_DIR.'sys.log', $msg."\n", FILE_APPEND)){ - echo "ERROR: failed trying to create log! please, check the writting permissions for "._MINDSRC_.\LOGS_DIR."!"; + echo "ERROR: failed trying to create log! please, check the writting permissions for "._MINDSRC_.\LOGS_DIR."!\n"; } break; } From f2559bdf1bb71f6943045f51ea7db9ca654561eb Mon Sep 17 00:00:00 2001 From: Morvana Bonin Date: Mon, 16 Apr 2012 00:24:23 -0300 Subject: [PATCH 2/2] Changes to the prototype of Ride(Rich IDE) --- docs/RIDE/components/ide.php | 61 ++++++++++++++++++++++++++++++++- docs/RIDE/css/mind-RIDE.css | 33 +++++++++++++++--- mind3rd/API/programs/Commit.php | 8 ++--- mind3rd/API/programs/who.php | 10 +++--- 4 files changed, 96 insertions(+), 16 deletions(-) diff --git a/docs/RIDE/components/ide.php b/docs/RIDE/components/ide.php index 278f02a..fab7db5 100755 --- a/docs/RIDE/components/ide.php +++ b/docs/RIDE/components/ide.php @@ -4,7 +4,66 @@ ?>

diff --git a/docs/RIDE/css/mind-RIDE.css b/docs/RIDE/css/mind-RIDE.css index fa988fb..58034c2 100755 --- a/docs/RIDE/css/mind-RIDE.css +++ b/docs/RIDE/css/mind-RIDE.css @@ -1,4 +1,4 @@ -/* +/* Document : mind-RIDE Created on : Jun 10, 2011, 8:18:20 PM Author : felipenmoura @@ -6,7 +6,7 @@ Purpose of the stylesheet follows. */ -root { +root { display: block; height:100%; } @@ -71,8 +71,31 @@ body position:absolute; } - - - +#menuList{ + position: relative; +} +#menuList ul{ + margin: 0px; + padding: 0px; + list-style: none; +} +#menuList>ul>li{ + padding: 4px; + margin-righ: 1px; + position: relative; + float: left; +} +#menuList>ul>li ul{ + margin: 0px; + padding: 0px; + position: absolute; + display: none; +} +#menuList ul li:hover ul{ + display: block; +} +#menuList ul li:focus ul{ + +} diff --git a/mind3rd/API/programs/Commit.php b/mind3rd/API/programs/Commit.php index 4c849c2..485d3b5 100755 --- a/mind3rd/API/programs/Commit.php +++ b/mind3rd/API/programs/Commit.php @@ -1,7 +1,7 @@ * @license licenses/mind3rd.license */ @@ -10,10 +10,8 @@ Symfony\Component\Console; /** - * This class represents the program auth, receiving the user and - * may also receive the password. It will start your session - * allowing you to run the restricted programs - * + * This program commits the current alterations to eveyone. + * * @author Felipe Nascimento de Moura */ class Commit extends MindCommand implements program diff --git a/mind3rd/API/programs/who.php b/mind3rd/API/programs/who.php index 2071661..824616c 100755 --- a/mind3rd/API/programs/who.php +++ b/mind3rd/API/programs/who.php @@ -1,7 +1,7 @@ * @license licenses/mind3rd.license */ @@ -16,24 +16,24 @@ */ class Who extends MindCommand implements program { - + public function executableFunction() { $name= JSON_decode($_SESSION['auth']); $name= $name->name; echo 'You are '.$_SESSION['login'].", also known as ".$name."\n"; } - + public function __construct() { $this->setCommandName('who') ->setDescription("Show information about the currently logged used") ->setRestrict(true) - ->setHelp("Show information about the currently logged used") + ->setHelp("Show information about the currently logged user") ->setAction(function($class){ $class->executableFunction(); }); - + /*$this->addOption('am', 'am'); $this->addOption('i', 'i');*/ $this->addRequiredArgument('am',