This repository has been archived by the owner. It is now read-only.
Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (10 sloc) 448 Bytes
<?php
require_once dirname(__FILE__) . '/common.php';
global $allowed_services;
$allowed_actions = array('signin', 'signout');
$service = !empty($_GET['service']) && in_array($_GET['service'], $allowed_services) ? strtolower($_GET['service']) : false;
$action = !empty($_GET['action']) && in_array($_GET['action'], $allowed_actions) ? $_GET['action'] : false;
if ($service && $action) {
global $$service;
$$service->$action();
}