Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
source for website
branch: development

This branch is even with master

Failed to load latest commit information.
downloads first commit
feeds first commit
images first commit
inc first commit
kml first commit
lang first commit
script adding Kalin's fusion map
style adding Kalin's fusion map
views tweaking header and footer links to point to language specific blog p…
.gitignore ignore contents of /feeds/driveCache and /feeds/temp
.htaccess tweaking header and footer links to point to language specific blog p…
Browser.php first commit
README.markdown adding Kalin's fusion map
about.php tweaking header and footer links to point to language specific blog p…
drive.php tweaking header and footer links to point to language specific blog p…
drives.php tweaking header and footer links to point to language specific blog p…
drives_headless.php first commit
favicon.gif first commit
favicon.ico first commit
favicon.png first commit
feedMap.php tweaking header and footer links to point to language specific blog p…
fusionMap.php adding Kalin's fusion map
glossary.php tweaking header and footer links to point to language specific blog p…
index.php tweaking header and footer links to point to language specific blog p…
info.php tweaking header and footer links to point to language specific blog p…
press.php tweaking header and footer links to point to language specific blog p…
sitemap.xml first commit
stats.php tweaking header and footer links to point to language specific blog p…
submit.php tweaking header and footer links to point to language specific blog p…
submitDrive.php tweaking header and footer links to point to language specific blog p…
submitDrive_headless.php killing flush and delete for the moment as they need added safety net…
submit_headless.php first commit
terms.php first commit

README.markdown

Safecast.org

How to Start?

  • Ask Safecast for a copy of the database for you to run on your mysql server
  • Add the following files to your build

/inc/flourishDB.php

<?php 
$db  = new fDatabase('mysql', 'DATABASE_NAME', 'DATABASE_USER', 'DATABASE_PASSWORD', 'localhost');
fORMDatabase::attach($db);

/inc/pdoDB.php

<?php
try {  

    $db = new PDO("mysql:host=localhost;dbname=DATABASE_NAME", 'DATABASE_USER', 'DATABASE_PASSWORD');  
    $db->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION ); 
}  
catch(PDOException $e) {  
    return $e->getMessage();  
}

CHMODing

The following directories need to be write-able by your webserver for a fully functioning site

  • /feeds/driveCache
  • /feeds/temp

After CHMODing, for any of the drive maps that you want to display you need to generate them by going to /drive/manage and clicking on the "Generate Static Files" link for every drive.
This will populate the /feeds/driveCache directory with the static JSON (and KML and CSV) files for each drive.

Something went wrong with that request. Please try again.