Source

devbooth / index.php

<?php
$app=require __DIR__.'/lib/base.php';
$app->set('AUTOLOAD','inc/;inc/temp/');
$app->set('GUI','gui/');
$app->set('DEBUG',3);
$app->set('top_menu',
	array(
		'/'=>'Home',
		'about'=>'About',
		'about#contribute'=>'Contribute',
		'api'=>'API'
	)
);

$app->set('side_menu',
	array(
		'/'=>'Error Handling',
		'globals'=>'Globals'
	)
);


$app->set('POSTBOX_DB',new DB('sqlite:./db/pb.sqlite'));
$app->route('GET /','Main->home');
$app->route('GET /about','Main->about');
$app->route('GET /contribute','Main->contribute');
$app->route('GET /api','Main->api');

$app->route('GET /pb/id/@id','Postbox->postboxById');
$app->route('GET /pb/list/pincode','Postbox->pincode');
$app->route('GET /pb/list/location','Postbox->location');
$app->route('GET /pb/pincode/@pincode','Postbox->postboxByPincode');
$app->route('GET /pb/search','Postbox->search');
$app->route('GET /pb/location/@lat/@long','Postbox->postboxByPincode');
$app->route('GET /data_pull','Instagram->pull_data');

//as of not required. I dont want to increase db size on my server.
//$app->route('GET /image_pull','Instagram->pull_images');


$app->run();
?>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.