Skip to content

Instantly share code, notes, and snippets.

@sleexyz
Created April 1, 2014 16:33
Show Gist options
  • Save sleexyz/9917795 to your computer and use it in GitHub Desktop.
Save sleexyz/9917795 to your computer and use it in GitHub Desktop.
Site: https://csserver.exeter.edu/schedule
Page: account.php
-- Functionality: User Login
GET['login'] ==> Use login data
POST['username'] ==> Username of account
POST['password'] ==> Password of account
*** Cookies set in session:
(REQUIRED) exetertools_token ==> Login token
exetertools_username ==> Local cache of username
exetertools_id ==> Local cache of real name
exetertools_classes ==> Local cache of classes
-- Functionality: User logout
GET['logout'] ==> Logout current session
POST['logout'] ==> Logout current session
** Deletes cookies set by login functionality
-- Functionality: Account Status
GET['status'] ==> Get current status
Returns HTML of status in a div with the ID of status
Not Logged in: "You are not logged in."
Logged in: "You are logged in as USERNAME."
Page: formCalendar.php
-- Functionality: Get calendar information
GET['sdate']=MM-DD-YYYY -- start date of calendar
GET['edate']=MM-DD-YYYY -- end date of calendar (optional; seven days if absent)
GET['format']=FORAMT -- format of information (one of HTML or JSON; defaults to HTML)
@sleexyz
Copy link
Author

sleexyz commented Apr 1, 2014

credits to mr. sea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment