All pastes #182553 Raw Edit

Danny

public php v1 · immutable
#182553 ·published 2006-09-26 03:56 UTC
rendered paste body
if (!empty($_POST['zcmd'])){			# Make sure Zoints is sending the request			$zoints_ips = explode(',', $modSettings['zoints_ips']);			if (!in_array($_SERVER['REMOTE_ADDR'], $zoints_ips))			{				//invalid request for zcmd				exit('::invalid request::');			}						if ($_POST['zcmd'] == 'update-info')			{				$userid = intval($_POST['userid']);				$data =  trim(strval($_POST['data']));								$updatedata = array('haszointsprofile' => 1, 'zointsprofiledata' => "'$data'");				updateMemberData($userid, $updatedata);				exit('OK');			}}