/* The Student's Portal */
Return (to_life); is the Epitech Official Students Portal.
- PHP >= 5.3
- libssh2-php
- Web Server
- MySQL
-
If you have not yet a web server, read the file
doc/install_apache_server.txt
to know how to install an apache server. -
Create a MySQL database using
return-to_life.sql
.
$> mysql -u yourlogin -p < return-to_life.sql
- Get the latest version of Ionis-Users-Informations (SQL version):
$> wget https://github.com/db0company/Ionis-Users-Informations/blob/master/ionisinfo.class.php
- Get the casts and right classes from the Web-Service:
$> cd src/class/
$> wget https://raw.github.com/db0company/Ionis-Users-Informations-Web-Service/master/ws/Cast.class.php
$> wget https://raw.github.com/db0company/Ionis-Users-Informations-Web-Service/master/ws/CastManager.class.php
$> wget https://raw.github.com/db0company/Ionis-Users-Informations-Web-Service/master/ws/Rights.class.php
$> cd ../..
- Install bootstrap css and png files
$> wget http://twitter.github.com/bootstrap/assets/bootstrap.zip
$> unzip bootstrap.zip
$> rm bootstrap.zip
- Install JQuery
$> cd js/
$> wget http://code.jquery.com/jquery-latest.min.js
$> mv jquery-latest.min.js jquery.min.js
$> cd ..
- Edit the
conf.php
file.
-
Objects attributes :
theVariableName
,blue
,protocolName
-
Internal function variables : like Objects attributes
-
Global variables :
categ_name
(def_include_dir) -
Objects methods : like objects attributes
-
Objects getters/setters :
getTheVariableName
,setProtocolName
,isBlue
(boolean) -
Global function names :
can_you_sleep
-
Filenames :
src/include/tools.php
,src/class/Portal.class.php
(classes),src/nmsp/View.nmsp.php
(namespaces) -
Align functions names :
private function hello($arg)
- Braces at the end of the lines
- No useless parenthesis on
return
(funny paradox with the name of the website :P) - Alignment with spaces, not tabs
function foo($bar) {
if ($bar == 5) {
return 6;
}
return 8;
}
-
src
source code
-
src/include
general includes, countaining global functions, global variable
-
src/model
get informations to be shown
-
src/view
echo html
-
src/class
PHP Classes__
-
src/nmsp
PHP Namespaces
- src/include/def.php contain directories definitions
Copyright 2012 Barbara Lepage
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- Made by db0
- Website: http://db0.fr/
- Contact: db0company@gmail.com
Latest version of this project is on GitHub: