Skip to content

ReturnToLife/Portal3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

return (to_life);

/* The Student's Portal */

Usage

Return (to_life); is the Epitech Official Students Portal.

Requirement

  • PHP >= 5.3
  • libssh2-php
  • Web Server
  • MySQL

Initialization

  1. If you have not yet a web server, read the file doc/install_apache_server.txt to know how to install an apache server.

  2. Create a MySQL database using return-to_life.sql.

$> mysql -u yourlogin -p < return-to_life.sql
  1. Get the latest version of Ionis-Users-Informations (SQL version):
$> wget https://github.com/db0company/Ionis-Users-Informations/blob/master/ionisinfo.class.php
  1. 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 ../..
  1. Install bootstrap css and png files
$> wget http://twitter.github.com/bootstrap/assets/bootstrap.zip
$> unzip bootstrap.zip
$> rm bootstrap.zip
  1. Install JQuery
$> cd js/
$> wget http://code.jquery.com/jquery-latest.min.js
$> mv jquery-latest.min.js jquery.min.js
$> cd ..
  1. Edit the conf.php file.

Development

Coding Style

Variables names

  • 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;
}

Files & Directories

  • 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

Information

  • src/include/def.php contain directories definitions

Copyright/License

 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.

Author

Up to date

Latest version of this project is on GitHub:

About

[DEPRECATED] Temporary Portal for ReturnToLife.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published