Bearsampp 2025.8.29
Loading...
Searching...
No Matches
class.tpl.app.online.php
Go to the documentation of this file.
1<?php
2/*
3 * Copyright (c) 2021-2024 Bearsampp
4 * License: GNU General Public License version 3 or later; see LICENSE.txt
5 * Author: bear
6 * Website: https://bearsampp.com
7 * Github: https://github.com/Bearsampp
8 */
9
18{
19 // Constant for the status action identifier
20 const ACTION = 'status';
21
34 public static function process()
35 {
37
39 self::ACTION, array($bearsamppConfig->isOnline() ? Config::DISABLED : Config::ENABLED),
41 false, get_called_class()
42 );
43 }
44
56 public static function getActionStatus($status)
57 {
58 return TplApp::getActionRun(Action::SWITCH_ONLINE, array($status)) . PHP_EOL .
61 }
62}
global $bearsamppLang
const SWITCH_ONLINE
const DISABLED
const ENABLED
const MENU_PUT_ONLINE
const MENU_PUT_OFFLINE
static getActionMulti($action, $args=array(), $item=array(), $disabled=false, $class=false)
static getActionRun($action, $args=array(), $item=array(), $waitUntilTerminated=true)
static getActionStatus($status)
static getActionRestart($sName)
global $bearsamppConfig
Definition homepage.php:27