Subversion Repositories eFlore/Applications.cel

Rev

Rev 1907 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1907 Rev 1935
Line 6... Line 6...
6
 
6
 
7
$options = getopt("hiou:d:e:p:FU:P:D",array("help", "images", "obs", "user:", "domain:", "email:", "pass:", "flush", "upload:", "phpsessid", "debug"));
7
$options = getopt("hiou:d:e:p:FU:P:D",array("help", "images", "obs", "user:", "domain:", "email:", "pass:", "flush", "upload:", "phpsessid", "debug"));
Line -... Line 8...
-
 
8
if(isset($options['h']) || isset($options['help'])) die(__help());
8
if(isset($options['h']) || isset($options['help'])) die(__help());
9
 
-
 
10
 
9
 
11
if(isset($options['u'])) define('USER', $options['u']);
10
 
12
elseif(isset($options['user'])) define('USER', $options['user']);
11
define('USER', isset($options['u']) ? $options['u'] : (isset($options['user']) ? $options['user'] : DEFAULT_USER));
13
 
12
define('DOMAIN', isset($options['d']) ? $options['d'] : (isset($options['domain']) ? $options['domain'] : DEFAULT_DOMAIN));
14
define('DOMAIN', isset($options['d']) ? $options['d'] : (isset($options['domain']) ? $options['domain'] : DEFAULT_DOMAIN));
Line 18... Line 20...
18
elseif (isset($options['phpsessid'])) define('COOKIE', $options['phpsessid']);
20
elseif (isset($options['phpsessid'])) define('COOKIE', $options['phpsessid']);
Line 19... Line 21...
19
 
21
 
20
// API::auth() define()'s COOKIE
22
// API::auth() define()'s COOKIE
Line -... Line 23...
-
 
23
require_once('api.php');
-
 
24
 
-
 
25
if(!defined('USER')) auth();
-
 
26
if(!defined('USER')) define('USER', DEFAULT_USER);
21
require_once('api.php');
27
 
22
 
28
 
23
if(isset($options['o']) || isset($options['obs']) || isset($options['F']) || isset($options['flush'])) {
29
if(isset($options['o']) || isset($options['obs']) || isset($options['F']) || isset($options['flush'])) {
Line 24... Line 30...
24
	cel_delete_all_obs();
30
	cel_delete_all_obs();