Mergin from server

Esse commit está contido em:
Felipe N. Moura
2012-06-29 02:19:32 -03:00
6 arquivos alterados com 99 adições e 18 exclusões
Arquivo executável → Arquivo normal
+1
Ver Arquivo
@@ -32,3 +32,4 @@ mind3rd/API/logs/*
.project
nbproject
nbproject/*
/.settings/
+60 -1
Ver Arquivo
@@ -4,7 +4,66 @@
?>
<div id="appBody">
<div id="menuPanel">
<br/>
<nav id="menuList">
<ul>
<li tabindex="0">
File
<ul>
<li>New project</li>
<li>Open</li>
<li class="depends-on-project">Save</li>
<li class="depends-on-project">Save as...</li>
<li class="separator"></li>
<li>Import</li>
<li class="depends-on-project">Export</li>
<li class="separator"></li>
<li>Exit</li>
</ul>
</li>
<li tabindex="0">
Edit
<ul>
<li class="depends-on-project">Project properties</li>
<li>User properties</li>
<li>User preferences</li>
<li class="separator"></li>
<li>Manage projects</li>
<li class="depends-on-admin">Manage users</li>
</ul>
</li>
<li tabindex="0">
View
<ul>
<li>Left Panel</li>
<li>Output Panel</li>
</ul>
</li>
<li tabindex="0">
Tools
<ul>
<li class="depends-on-project">Analyze project</li>
<li class="depends-on-project">Update project</li>
<li class="depends-on-project">Commit project</li>
<li class="depends-on-project">Generate...</li>
</ul>
</li>
<li tabindex="0">
Help
<ul>
<li>Documentation</li>
<li>User Interface</li>
<li>User group</li>
<li class="separator"></li>
<li>Report a bug</li>
<li>Contribute</li>
</ul>
</li>
</ul>
</nav>
</div>
<div id="toolsPanel">
<br/>
+28 -5
Ver Arquivo
@@ -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{
}
+3 -3
Ver Arquivo
@@ -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;
}
+3 -5
Ver Arquivo
@@ -1,7 +1,7 @@
<?php
/**
* This file is part of TheWebMind 3rd generation.
*
*
* @author Felipe Nascimento de Moura <felipenmoura@gmail.com>
* @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 <felipenmoura@gmail.com>
*/
class Commit extends MindCommand implements program
+4 -4
Ver Arquivo
@@ -1,7 +1,7 @@
<?php
/**
* This file is part of TheWebMind 3rd generation.
*
*
* @author Felipe Nascimento de Moura <felipenmoura@gmail.com>
* @license licenses/mind3rd.license
*/
@@ -16,14 +16,14 @@
*/
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')
@@ -33,7 +33,7 @@
->setAction(function($class){
$class->executableFunction();
});
/*$this->addOption('am', 'am');
$this->addOption('i', 'i');*/
$this->addRequiredArgument('am',