Skip to content

Instantly share code, notes, and snippets.

View ConnorMcF's full-sized avatar
🥓
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Connor McFarlane ConnorMcF

🥓
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
View GitHub Profile
/*-----------------------------------------------------------
MaterialBoard
Copyright © 2015 Szymon (Szymekk) Jankowski
All Rights Reserved
Steam: https://steamcommunity.com/id/szymski
-------------------------------------------------------------*/
MATBConfig = { }
local Config = MATBConfig
Unhandled Lua Refresh: [NAME:autorun/matboard.lua] [TYPE:!UNKNOWN]
Error in hook ScoreboardShow: addons/materialboard/lua/autorun/matboard.lua:400: attempt to index upvalue 'Config' (a nil value)
stack traceback:
addons/materialboard/lua/autorun/matboard.lua:400: in function 'ShowScoreboard'
addons/materialboard/lua/autorun/matboard.lua:500: in function 'fn'
addons/ulib/lua/ulib/shared/hook.lua:110: in function <addons/ulib/lua/ulib/shared/hook.lua:93>
[C]: in function '‭‬‌‎'
[ERROR]
Unhandled Lua Refresh: [NAME:matboard_config.lua] [TYPE:!UNKNOWN]
[|CoreRP| ConnorMcF|2|STEAM_0:1:48251016] Lua Error:
Error in hook ScoreboardShow: addons/materialboard/lua/autorun/matboard.lua:400: attempt to index upvalue 'Config' (a nil value)
[|CoreRP| ConnorMcF|2|STEAM_0:1:48251016] Lua Error:
stack traceback:
[|CoreRP| ConnorMcF|2|STEAM_0:1:48251016] Lua Error:
addons/materialboard/lua/autorun/matboard.lua:400: in function 'ShowScoreboard'
<?php require_once 'Raven/Autoloader.php';
Raven_Autoloader::register();
$client = new Raven_Client('https://fd5806bcff3c42dca0e491a04a089ec5:9399eddf5cf64ca39f23c2380b6de8b3@app.getsentry.com/57589');
$error_handler = new Raven_ErrorHandler($client);
$error_handler->registerExceptionHandler();
$error_handler->registerErrorHandler();
$error_handler->registerShutdownFunction();
// The error is with the $client line.
// Fatal error: Class 'Raven_Client' not found in /var/www/wordpress/notfound/gmusic/int/raven.php on line 3
local self = {}
CAC.ULibBanSystem = CAC.MakeConstructor (self, CAC.IBanSystem)
function self:ctor ()
end
-- IReadOnlyBanSystem
function self:GetId ()
return "ULibBanSystem"
end
@ConnorMcF
ConnorMcF / lang.php
Last active November 10, 2015 18:46
<?php
// English language file for gMusic
// By Connor McFarlane
$lang["author"] = "Connor McFarlane";
$lang["lang"] = "English";
$lang["lang_code"] = "en";
// --- Translations
// Sidebar
// Welcome!
$lang["wel_welcome"] = "Welcome!";
$lang["wel_welcometo"] = "Welcome to gMusic!";
$lang["wel_regular"] = "Are you a regular Garry's Mod player? <a href='/dashboard/'>Pick the songs you want to listen to!</a>"; // don't edit the tags, <a> and </a>
$lang["wel_owner"] = "Are you a server owner or developer? <a href='/dashboard/servers'>Register your server with gMusic today!</a>"; // don't edit the tags, <a> and </a>
// Banned! :C
$lang["ban_banned"] = "Banned!";
$lang["ban_uhoh"] = "Uh oh! Looks like you're banned... :C";
$lang["ban_contact"] = 'Feel free to <a href="/contact">contact me</a> to appeal this ban.';
// Uh oh! :O
$lang["uhoh_uhoh"] = "Uh oh!";
$lang["uhoh_lookslike"] = "Looks like something went wrong!";
$lang["uhoh_reported"] = "Don't worry though, the error has been reported to a developer, and he'll fix it or something hopefully.";
@ConnorMcF
ConnorMcF / pt.php
Last active November 11, 2015 17:53
<?php
// European Portuguese language file for gMusic
// By SmOkEwOw
$lang["author"] = "SmOkEwOw";
$lang["author_attribution"] = "steamcommunity.com/id/SmOkEwOw";
$lang["lang"] = "Português Europeu";
$lang["lang_code"] = "pt";
$lang["options"] = // don't worry about editing this part
<<<EOT
<li><a href="/lang">Help Translate!</a></li>
<?php $rawDesign = file_get_contents("assets/php/design.json"); $Design = json_decode($rawDesign, true); $design = $Design['design']; $rawMusic = file_get_contents("music.json"); $Music = json_decode($rawMusic, true); ?>
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>Beta Load</title>
<link rel='icon' type='icon/x-image' href='assets/img/atomik.png'>
<?php if(!file_exists('settings.php')){ header('Location: ./admin.php'); } include 'assets/php/php.php'; ?>
</head>
<body>