<?php
require_once($_SERVER["DOCUMENT_ROOT"]."/backend/functions.php");
dbconn(true);
loggedinonly();
stdhead(T_("HOME"));
//check
if (file_exists($_SERVER["DOCUMENT_ROOT"]."/check.php") && $CURUSER["class"] == 11){
show_error_msg("WARNING", "Check.php still exists, please delete or rename the file as it could pose a security risk<br /><br /><a href='/check.php'>View Check.php</a> - Use to check your config!<br /><br />",0);
}
//Site Notice
if ($site_config['SITENOTICEON']){
begin_frame(T_("NOTICE"));
echo $site_config['SITENOTICE'];
end_frame();
}
//Site News
if ($site_config['NEWSON'] && $CURUSER['view_news'] == "yes"){
include($_SERVER["DOCUMENT_ROOT"]."/pages/index/news.php");
}
// Shoutbox
if ($site_config['SHOUTBOX'] && !($CURUSER['hideshoutbox'] == 'yes')){
begin_frame(T_("SHOUTBOX"));
echo '<iframe name="shout_frame" src="'.$site_config["SITEURL"].'/shoutbox.php" frameborder="0" marginheight="0" marginwidth="0" width="99%" height="210" scrolling="no" align="middle"></iframe>';
printf(T_("SHOUTBOX_REFRESH"), 5)."<br />";
end_frame();
}
// Scroller
if ($site_config['SCROLLER']){
begin_frame(T_("LATEST_TORRENTS_SCROLLER"));
echo '<iframe src="'.$site_config["SITEURL"].'/pages/index/carroussel.php" frameborder="0" marginheight="0" marginwidth="0" width="99%" height="160" scrolling="no" align="middle"></iframe>';
end_frame();
}
// Recommended
if ($site_config['RECOMMENDED']){
include($_SERVER["DOCUMENT_ROOT"]."/pages/index/recommended.php");
}
// VIP Torrents
if ($site_config['VIPTORRENT']){
include($_SERVER["DOCUMENT_ROOT"]."/pages/index/vip-torrents.php");
}
// Latest Fourm Post
if ($site_config['FORUMINDEX']){
include($_SERVER["DOCUMENT_ROOT"]."/pages/index/forum-index.php");
}
// Top Free Leech
if ($site_config['FREELEECHINDEX']){
include($_SERVER["DOCUMENT_ROOT"]."/pages/index/freeleech.php");
}
// Top Downloaded
if ($site_config['TOPDOWNLOADED']){
include($_SERVER["DOCUMENT_ROOT"]."/pages/index/topdownloaded.php");
}
// Latest Torrents
if ($site_config['LATESTTORRENTS']){
include($_SERVER["DOCUMENT_ROOT"]."/pages/index/latest-torrents.php");
}
// Confidentiality declaration
if ($site_config['DISCLAIMERON']){
begin_frame(T_("DISCLAIMER"));
echo T_("DISCLAIMERTXT");
end_frame();
}
stdfoot();
?>$site_config['RECOMMENDED'] = true; //Enable recommended torrents
$site_config['VIPTORRENT'] = true; //Enable vip torrents
$site_config['FORUMINDEX'] = true; //Enable forum on index
$site_config['FREELEECHINDEX'] = true; //Enable freeleech on index
$site_config['SCROLLER'] = true; // Enable recent scroller
$site_config['TOPDOWNLOADED'] = true; //Enable top downloads
$site_config['LATESTTORRENTS'] = true; //Enable latest torrent list
echo '</td><td style="font-size: 12px;@media screen and (min-width: 601px) {
body {
font-size: 20px;
}
}
@media screen and (max-width: 600px) {
body {
font-size:30px;
}
}
@media screen and (min-width: 601px) {
.menu ul li a {
font-size: 20px;
}
}
@media screen and (max-width: 600px) {
.menu ul li a {
font-size:27px;
}
}
@media screen and (min-width: 601px) {
.myBlock-caption {
font-size: 20px;
}
}
@media screen and (max-width: 600px) {
.myBlock-caption {
font-size:30px;
}
}
@media screen and (min-width: 601px) {
.myFrame-caption {
font-size: 20px;
}
}
@media screen and (max-width: 600px) {
.myFrame-caption {
font-size:30px;
}
}
@media screen and (min-width: 601px) {
.shoutbox_msgbox {
font-size: 15px;
}
}
@media screen and (max-width: 600px) {
.shoutbox_msgbox {
font-size:20px;
}
} $filecount = $filecounts;
$filecounts = (int)$_POST["numfiles"];
$ret = SQL_Query_exec("INSERT INTO torrents (filename, owner, name, descr, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon, last_action) VALUES (".sqlesc($fname).", '".$CURUSER['id']."', ".sqlesc($name).", ".sqlesc($descr)."', '".$inames[0]."', '".$inames[1]."', '".$catid."', '" . get_date_time() . "', '".$infohash."', '".$torrentsize."', '".$filecounts."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."', '".$langid."','$anon', '".get_date_time()."')");
$filecounts = (int)$filecount;
$ret = SQL_Query_exec("INSERT INTO torrents (filename, owner, name, descr, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon, last_action) VALUES (".sqlesc($fname).", '".$CURUSER['id']."', ".sqlesc($name).", ".sqlesc($descr).", '".$inames[0]."', '".$inames[1]."', '".$catid."', '" . get_date_time() . "', '".$infohash."', '".$torrentsize."', '".$filecounts."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."', '".$langid."','$anon', '".get_date_time()."')");
$site_config["floodsize"] = 1000; // Maximum size of messages, forumposts, comments
$site_config["floodlimit"] = 10; // Amount of sources before to be considered flood
$site_config["floodtime"] = 10; // Time between messages, forumposts, comments
if (!$body)
show_error_msg(T_("ERROR"), T_("YOU_DID_NOT_ENTER_ANYTHING"), 1);
//===| Anti-Flood
if ( strlen($body) > $site_config['floodsize'] )
show_error_msg("Error", "Your comment is too big, only $site_config[floodsize] characters are allowed.", 1);
$res = SQL_Query_exec("SELECT COUNT(*) FROM `comments` WHERE user = $CURUSER[id] AND added > '" . get_date_time(gmtime() - ($site_config["floodtime"] * 60)) . "'");
$row = mysqli_fetch_row($res);
if ($row[0] > $site_config["floodlimit"])
show_error_msg("Error", "You are only prohibited $site_config[floodlimit] comments in $site_config[floodtime] minutes.", 1);
//===| End
$added = "'" . get_date_time() . "'";
$body = sqlesc($body); //===| Anti-Flood
if ( strlen($body) > $site_config['floodsize'] )
show_error_msg("Error", "Your post is too big, only $site_config['floodsize'] characters are allowed.", 1);
//===| End
//Insert the new post
$added = "'" . get_date_time() . "'";
$body = sqlesc($body);
//===| Anti-Flood
$res = SQL_Query_exec("SELECT COUNT(*) FROM `forum_posts` WHERE userid = $CURUSER[id] AND added > '" . get_date_time(gmtime() - ($site_config['floodtime'] * 60)) . "'");
$row = mysqli_fetch_row($res);
if ($row[0] > $site_config['floodlimit'])
show_error_msg("Error", "You are only prohibited $site_config[floodlimit] forumposts in $site_config[floodtime] minutes.", 1);
//===| End $status = (@$_POST['send'] ? 'yes' : 'no');
//===| Anti-Flood
if ( strlen($msg) > $site_config["floodsize"] )
show_error_msg("Error", "Your message is too big, only $site_config[floodsize] characters are allowed.", 1);
$res = SQL_Query_exec("SELECT COUNT(*) FROM `messages` WHERE sender = $CURUSER[id] AND added > '" . get_date_time(gmtime() - ($site_config['floodtime'] * 60)) . "'");
$row = mysqli_fetch_row($res);
if ($row[0] > $site_config["floodlimit"])
show_error_msg("Error", "You are only prohibited $site_config[floodlimit] messages in $site_config[floodtime] minutes.", 1);
//===| End
$res2 = SQL_Query_exec("SELECT COUNT(*) FROM `torrents` WHERE `owner` = $posterid ");
$arr2 = mysqli_fetch_row($res2);
$torrentposts = $arr2[0];
$res3 = SQL_Query_exec("SELECT class FROM `users` WHERE id=$posterid ");
$arr3 = mysqli_fetch_row($res3);
$group1 = $arr3[0];
$res5 = SQL_Query_exec("SELECT level FROM `groups` WHERE group_id=$group1 ");
$arr6 = mysqli_fetch_row($res5);
$group = $arr6[0];
print ("<tr valign='top''><td width='150' align='left' class='comment-details'><center><i>$title</i></center><br /><center><img width='80' height='80' src='$avatar' alt='' /></center><br />Class:$group<br />Uploaded: $useruploaded<br />Downloaded: $userdownloaded<br />Posts: $forumposts <br />Torrents: $torrentposts<br /><br />Ratio: $userratio<br />Location: $usercountry<br /><br /></td>");
print ("<tr valign='top''><td width='150' align='left' class='comment-details'><center><i>$title</i> $res2 = SQL_Query_exec("SELECT COUNT(*) FROM `torrents` WHERE `owner` = '$posterid' ");
$arr2 = mysqli_fetch_row($res2);
$torrentposts = $arr2[0];
$res3 = SQL_Query_exec("SELECT class FROM `users` WHERE id=$posterrid ");
$arr3 = mysqli_fetch_row($res3);
$group = $arr3[0];
print ("<tr valign='top''><td width='150' align='left' class='comment-details'><center><i>$title</i></center><br /><center><img width='80' height='80' src='$avatar' alt='' /></center><br />Class:$group<br />Uploaded: $useruploaded<br />Downloaded: $userdownloaded<br />Posts: $forumposts <br />Torrents: $torrentposts<br /><br />Ratio: $userratio<br />Location: $usercountry<br /><br /></td>");
Git global setup
git config --global user.name "Mark "
git config --global user.email "mark@hotmail.com"
Create a new repository
git clone https://gitlab.com/M-jay/git.git
cd git
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Push an existing folder
cd existing_folder
git init
git remote add origin https://gitlab.com/M-jay/git.git
git add .
git commit -m "Initial commit"
git push -u origin master
Push an existing Git repository
cd existing_repo
git remote rename origin old-origin
git remote add origin https://gitlab.com/M-jay/git.git
git push -u origin --all
git push -u origin --tags

