Skip to content

Instantly share code, notes, and snippets.

@LaocheXe
LaocheXe / server3,php
Created February 3, 2020 02:23
Display server details
<?php
error_reporting(-1);
require_once('GameQ/Autoloader.php');
// Testing for Server 3
$GameQ = new \GameQ\GameQ();
$GameQ->addServer([
'id' => 'serv1',
'type' => 'arma3',
@LaocheXe
LaocheXe / logi_264.2019.php
Created October 2, 2019 18:30
Syntax error in system log files
<?php
/* e107 website system: Log info file: 264:2019 */
$domainInfo = array (
'net' => 9,
'com' => 1,
'au' => 1,
);
@LaocheXe
LaocheXe / e_sitelink.php
Created September 9, 2018 00:54
voice eXe e_sitelink.php
@LaocheXe
LaocheXe / mods.php
Created August 31, 2018 20:22
Fatal error: Uncaught ArgumentCountError:
<?php
//header('Content-Type: text/xml');
//$_E107['no_online'] = true;
//$_E107['no_forceuserupdate'] = true;
//$_E107['no_menus'] = false;
//$_E107['allow_guest'] = true; // allow crons to run while in members-only mode.
//$_E107['no_maintenance'] = true;
//require_once("class2.php");
require_once("class2.php");
require_once(HEADERF);
<?php
//header('Content-Type: text/xml');
//$_E107['no_online'] = true;
//$_E107['no_forceuserupdate'] = true;
//$_E107['no_menus'] = false;
//$_E107['allow_guest'] = true; // allow crons to run while in members-only mode.
//$_E107['no_maintenance'] = true;
//require_once("class2.php");
require_once("class2.php");
require_once(HEADERF);
@LaocheXe
LaocheXe / loa.php
Created June 1, 2018 13:58
Working on LOA page - button to create loa broken
<?php
//////////// HEADER SECTION //////////////////////////////////
////////// For e107 Security ////////////////////////////////
if(!empty($_POST) && !isset($_POST['e-token']))
{
// set e-token so it can be processed by class2
$_POST['e-token'] = '';
}
if (!defined('e107_INIT'))
@LaocheXe
LaocheXe / loa.php
Created May 31, 2018 13:52
LOA file, shows user LOA's, need help with Create LOA button
<?php
//////////// HEADER SECTION //////////////////////////////////
////////// For e107 Security ////////////////////////////////
if(!empty($_POST) && !isset($_POST['e-token']))
{
// set e-token so it can be processed by class2
$_POST['e-token'] = '';
}
if (!defined('e107_INIT'))
@LaocheXe
LaocheXe / config.sqf
Created May 22, 2018 00:59
VAS Config for SWOP
//Allow player to respawn with his loadout? If true unit will respawn with all ammo from initial save! Set to false to disable this and rely on other scripts!
vas_onRespawn = false;
//Preload Weapon Config?
vas_preload = true;
//If limiting weapons its probably best to set this to true so people aren't loading custom loadouts with restricted gear.
vas_disableLoadSave = false;
//Amount of save/load slots
vas_customslots = 9; //9 is actually 10 slots, starts from 0 to whatever you set, so always remember when setting a number to minus by 1, i.e 12 will be 11.
/*
@LaocheXe
LaocheXe / e_user.php
Last active May 17, 2018 23:06
Awards - e_user.php
<?php
/*
* e107 website system
*
* Copyright (C) 2008-2014 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
*/
@LaocheXe
LaocheXe / ModsUpdate.bat
Created February 25, 2018 20:08
Klein - I broke something
@echo off
:: MODS IDs
:: CHANGE ModDownload[]=false TO true IF YOU WISH TO DOWNLOAD. JUST FOLLOW THE PATTERN IF YOU WISH TO ADD MORE MODS.
:: _Ares_Mod
set ModsName[0]="@Ares"
set Mods[0]=723217262
set ModDownload[0]=true