initial trinidad checkin
This commit is contained in:
		
							
								
								
									
										3
									
								
								boot.php
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								boot.php
									
									
									
									
									
								
							| @@ -45,7 +45,8 @@ require_once('include/Contact.php'); | ||||
| require_once('include/account.php'); | ||||
|  | ||||
|  | ||||
| define ( 'RED_PLATFORM',            'redmatrix' ); | ||||
| define ( 'RED_PLATFORM',            'trinidad' ); | ||||
| define ( 'TRINIDAD',                true ); | ||||
| define ( 'RED_VERSION',             trim(file_get_contents('version.inc')) . 'R'); | ||||
| define ( 'ZOT_REVISION',            1     ); | ||||
|  | ||||
|   | ||||
| @@ -131,7 +131,7 @@ function new_contact($uid,$url,$channel,$interactive = false, $confirm = false) | ||||
| 	} | ||||
| 	else { | ||||
| 		if(! ($is_http)) { | ||||
| 			if(! intval(get_config('system','diaspora_enabled'))) { | ||||
| 			if(! intval(get_config('system','diaspora_enabled')) || defined('TRINIDAD')) { | ||||
| 				$result['message'] = t('Protocol disabled.'); | ||||
| 				return $result; | ||||
| 			} | ||||
|   | ||||
| @@ -564,7 +564,7 @@ function notifier_run($argv, $argc){ | ||||
|  | ||||
|  | ||||
| 		if($hub['hubloc_network'] === 'diaspora' || $hub['hubloc_network'] === 'friendica-over-diaspora') { | ||||
| 			if(! get_config('system','diaspora_enabled')) | ||||
| 			if(! get_config('system','diaspora_enabled') || defined('TRINIDAD')) | ||||
| 				continue; | ||||
|  | ||||
| 			require_once('include/diaspora.php'); | ||||
|   | ||||
| @@ -12,7 +12,7 @@ function receive_post(&$a) { | ||||
|  | ||||
|  | ||||
| 	$enabled = intval(get_config('system','diaspora_enabled')); | ||||
| 	if(! $enabled) { | ||||
| 	if(! $enabled || defined('TRINIDAD')) { | ||||
| 		logger('mod-diaspora: disabled'); | ||||
| 		http_status_exit(500); | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user