Skip to content

Commit

Permalink
loading up a slightly cleaned version of app
Browse files Browse the repository at this point in the history
  • Loading branch information
David Olsen committed Jul 11, 2009
1 parent 9754a7e commit 5186012
Show file tree
Hide file tree
Showing 1,061 changed files with 354,461 additions and 0 deletions.
19 changes: 19 additions & 0 deletions LICENSE
@@ -0,0 +1,19 @@
Copyright (c) 2008 Massachusetts Institute of Technology

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
7 changes: 7 additions & 0 deletions README 100644 → 100755
@@ -0,0 +1,7 @@
The MIT Mobile Web is a modular framework for creating and hosting web services optimized for mobile devices.

It includes specialized modules for searching and browsing LDAP and ArchGIS, as well as more MIT specific services like Stellar and the Events Calendar. It also includes generic modules like 3Down and Emergency Info, which could be modified to present any RSS feed in a mobile-friendly manner.

MIT Mobile Web is written with PHP, Python, Javascript, HTML, and CSS. It uses Python with the open source Wireless Universal Resource File (WURFL) to categorize devices, allowing for an experience tailored to each device's capabilities. It uses PHP to dynamically generate pages and also handles the parsing and quering of external services, such as LDAP and ArchGIS. Javascript is used for more modern devices to provide a more dynamic experience, such as the special behavior of the Shuttle Schedule when an iPhone's orientation changes.

There is currently a lot of duplicated effort among schools looking to implement their own mobile web, and most schools don't even have the resources to start from scratch. Many educational institutions have similar infrastructure to MIT, so adapting the MIT Mobile Web to work with their services would be relatively simple. Opening up the source to the MIT Mobile Web will garner goodwill and prestige among educational institutions.
Binary file added db/development.copy.sqlite3
Binary file not shown.
19 changes: 19 additions & 0 deletions extra/mobile_vhost.conf
@@ -0,0 +1,19 @@
<VirtualHost *>
ServerName m.yourhostname.edu
DocumentRoot /path/to/MIT-Mobile-Web/web
Alias /wurfl/api /path/to/MIT-Mobile-Web/wurfl/mobile_detect.py

<Directory /path/to/MIT-Mobile-Web/web/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<Directory /path/to/MIT-Mobile-Web/wurfl/>
AddHandler python-program .py
PythonHandler mobile_detect
PythonDebug On
</Directory>

</VirtualHost>
9 changes: 9 additions & 0 deletions extra/pdo_drivers.php
@@ -0,0 +1,9 @@
<?

# display which PDO drivers are installed
# run at command line by typing 'php pdo_drivers.php'
foreach (PDO::getAvailableDrivers() as $driver) {
echo($driver."\r\n");
}

?>
11 changes: 11 additions & 0 deletions lib/ShuttleSchedule.SQL
@@ -0,0 +1,11 @@
CREATE TABLE Schedule
(
day_scheduled CHAR(3),
day_real CHAR(3),
route VARCHAR(50),
place VARCHAR(50),
hour INTEGER,
minute INTEGER
)
;

0 comments on commit 5186012

Please sign in to comment.