示例#1
0
		if (isset($_POST['nginx']))
		{
			if (!CPullOptions::GetNginxStatus())
			{
				$send = true;
				CPullOptions::SendConfigDie();
				CPullOptions::SetNginxStatus('Y');
			}
		}
		else
		{
			if (CPullOptions::GetNginxStatus())
			{
				$send = true;
				CPullOptions::SendConfigDie();
				CPullOptions::SetNginxStatus('N');
			}
		}

		if (isset($_POST['push']))
		{
			if (!CPullOptions::GetPushStatus())
				CPullOptions::SetPushStatus('Y');
		}
		else
		{
			if (CPullOptions::GetPushStatus())
				CPullOptions::SetPushStatus('N');
		}