ensure that important system fields are passed through the appman editor
This commit is contained in:
		| @@ -23,6 +23,8 @@ class Appman extends \Zotlabs\Web\Controller { | |||||||
| 				'photo' => escape_tags($_REQUEST['photo']), | 				'photo' => escape_tags($_REQUEST['photo']), | ||||||
| 				'version' => escape_tags($_REQUEST['version']), | 				'version' => escape_tags($_REQUEST['version']), | ||||||
| 				'price' => escape_tags($_REQUEST['price']), | 				'price' => escape_tags($_REQUEST['price']), | ||||||
|  | 				'requires' => escape_tags($_REQUEST['requires']), | ||||||
|  | 				'system' => intval($_REQUEST['system']), | ||||||
| 				'sig' => escape_tags($_REQUEST['sig']) | 				'sig' => escape_tags($_REQUEST['sig']) | ||||||
| 			); | 			); | ||||||
| 	 | 	 | ||||||
| @@ -64,7 +66,7 @@ class Appman extends \Zotlabs\Web\Controller { | |||||||
| 	} | 	} | ||||||
| 	 | 	 | ||||||
| 	 | 	 | ||||||
| 		function get() { | 	function get() { | ||||||
| 	 | 	 | ||||||
| 		if(! local_channel()) { | 		if(! local_channel()) { | ||||||
| 			notice( t('Permission denied.') . EOL); | 			notice( t('Permission denied.') . EOL); | ||||||
| @@ -99,6 +101,8 @@ class Appman extends \Zotlabs\Web\Controller { | |||||||
| 			'$version' => array('version', t('Version ID'),(($app) ? $app['app_version'] : ''), ''), | 			'$version' => array('version', t('Version ID'),(($app) ? $app['app_version'] : ''), ''), | ||||||
| 			'$price' => array('price', t('Price of app'),(($app) ? $app['app_price'] : ''), ''), | 			'$price' => array('price', t('Price of app'),(($app) ? $app['app_price'] : ''), ''), | ||||||
| 			'$page' => array('page', t('Location (URL) to purchase app'),(($app) ? $app['app_page'] : ''), ''), | 			'$page' => array('page', t('Location (URL) to purchase app'),(($app) ? $app['app_page'] : ''), ''), | ||||||
|  | 			'$system' => (($app) ? intval($app['app_system']) : 0), | ||||||
|  | 			'$requires' => (($app) ? $app['app_requires'] : ''), | ||||||
| 			'$embed' => $embed, | 			'$embed' => $embed, | ||||||
| 			'$submit' => t('Submit') | 			'$submit' => t('Submit') | ||||||
| 		)); | 		)); | ||||||
|   | |||||||
| @@ -12,6 +12,10 @@ | |||||||
| <input type="hidden" name="addr" value="{{$addr}}" /> | <input type="hidden" name="addr" value="{{$addr}}" /> | ||||||
| {{/if}} | {{/if}} | ||||||
|  |  | ||||||
|  | <input type="hidden" name="requires" value="{{$requires}}" /> | ||||||
|  | <input type="hidden" name="system" value="{{$system}}" /> | ||||||
|  |  | ||||||
|  |  | ||||||
| {{include file="field_input.tpl" field=$name}} | {{include file="field_input.tpl" field=$name}} | ||||||
| {{include file="field_input.tpl" field=$url}} | {{include file="field_input.tpl" field=$url}} | ||||||
| {{include file="field_textarea.tpl" field=$desc}} | {{include file="field_textarea.tpl" field=$desc}} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user