"",
// Username
"username" => "Job Opened - RCCService",
// Avatar URL.
// Uncomment to use custom avatar instead of bot's pic
//"avatar_url" => "https://ru.gravatar.com/userimage/28503754/1168e2bddca84fec2a63addb348c571d.jpg?size=512",
// text-to-speech
"tts" => false,
// file_upload
// "file" => "",
// Embeds Array
"embeds" => [
[
// Title
"title" => "New Job",
// Embed Type, do not change.
"type" => "rich",
// Description
"description" => "A new job was opened at ".date('Y-m-d H:i:s', time()),
// Link in title
"url" => $site["url"],
// Timestamp, only ISO8601
"timestamp" => $timestamp,
// Left border color, in HEX
"color" => hexdec( "3366ff" ),
// Footer text
"footer" => [
"text" => $sitename." RCCService",
//"icon_url" => $site["url"]."/assets/renders/user/headshot?userId=1"
"icon_url" => "https://cdn.discordapp.com/icons/1021096726226026576/a_2c0842f8b21730b002d41002c9a44eaf.png"
],
// Embed image
"image" => [
"url" => ""
],
// thumbnail
//"thumbnail" => [
// "url" => "https://ru.gravatar.com/userimage/28503754/1168e2bddca84fec2a63addb348c571d.jpg?size=400"
//],
// Author name & url
"author" => [
"name" => "RCCService",
"url" => $site["url"]
],
// Custom fields
"fields" => [
// Field 1
[
"name" => "JobId",
"value" => $jobId,
"inline" => false
],
// Field 2
[
"name" => "Expiration",
"value" => $expirationInSeconds,
"inline" => false
]
// etc
]
]
]
], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE );
return discordmsg($msg, $webhook); // SENDS MESSAGE TO DISCORD
}
function getChildren() {
return "Got 0 children, this isn't lua dumbass.";
}
function isBanned() {
require dirname(__DIR__).'/core/config.php';
$query = $con->prepare('SELECT * FROM bans WHERE user=:user ORDER BY time DESC LIMIT 1');
$query->bindParam(':user', $_SESSION['user']);
$query->execute();
$ban = $query->fetch();
if(!empty($ban)) {
if($ban['ip'] == $_SERVER['REMOTE_ADDR'] && $ban['type'] == 4 || $ban['type'] == 4) {
ob_end_clean();
die('
403 Forbidden
403 Forbidden
nginx
');
} }
}
function headStart() {
require dirname(__DIR__).'/core/config.php';
ob_start();
session_start();
if($maintenance && $pagename !== "Maintenance") {
header("Location: /maintenance"
); }
isBanned();
}
class PartyStarter {
function bootstrap() {
echo '
';
}
function header() {
//$navTheme = "bg-info";
$theme = 'primary';
// alert
$alert = false;
if($alert) {
$alert = 'Sexy alert';
// do not touch
$alert = '
'.$alert.'
';
}
// to not confuse you i renamed it from loggedoutheader to header since qzip made it both lol
require dirname(__DIR__).'/core/config.php';
$sitelogotohome = 'G '.$sitename.'';
$showhome = '';
$adminTab = " ";
if (isset($_SESSION['user'])) {
$showhome = '