Add Full Meridian Function to Myweb

Junior Spellweaver
Joined
Nov 18, 2012
Messages
133
Reaction score
24
PHP:
$api = My::app()->getApi();
$role = CAuth::selectedRoleId();
$roleData = $api->getRole($role);

if ($roleData['status']['meridian_data'] != '0000005000000000000000000000000500000064000000000000000100000000000000000000000000000000000000000000000000000000'){
	
	$roleData['status']['meridian_data'] = '0000005000000000000000000000000500000064000000000000000100000000000000000000000000000000000000000000000000000000';

	if($api->putRole($role, $roleData)) {
		echo 'success';
	}else {
		echo 'system error';
	}
}

This is just a idea the way add it as an addon to MyWeb Panel.
If you have any question let me know.
 
PHP:
$api = My::app()->getApi();
$role = CAuth::selectedRoleId();
$roleData = $api->getRole($role);

if ($roleData['status']['meridian_data'] != '0000005000000000000000000000000500000064000000000000000100000000000000000000000000000000000000000000000000000000'){
	
	$roleData['status']['meridian_data'] = '0000005000000000000000000000000500000064000000000000000100000000000000000000000000000000000000000000000000000000';

	if($api->putRole($role, $roleData)) {
		echo 'success';
	}else {
		echo 'system error';
	}
}

This is just a idea the way add it as an addon to MyWeb Panel.
If you have any question let me know.
thanks
 
help

what do you mean?
How do I add it to my administration or user panel?



bhashana - Add Full Meridian Function to Myweb - RaGEZONE Forums


















 
Back