print ("<div><form method='POST' action='?setnow&id=$id'> <input type='submit' class='btn btn-block btn-success' value='".T_("M_TODAY")."' /> </form></div>");//************ DO SOME "GET" STUFF BEFORE PAGE LAYOUT ***************
$id = (int) $_GET["id"];
// sett torrent to today
if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['setnow'])) {
SQL_Query_exec("UPDATE torrents SET added = NOW() WHERE id = $id");
}
// sett torrent to today
$scrape = (int)$_GET["scrape"];
if (!is_valid_id($id))
show_error_msg(T_("ERROR"), T_("THATS_NOT_A_VALID_ID"), 1);
//************ DO SOME "GET" STUFF BEFORE PAGE LAYOUT ***************
$id = (int) $_GET["id"];
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['setnow'])) {
SQL_Query_exec("UPDATE torrents SET added = NOW() WHERE id = $id");
}
//************ DO SOME "GET" STUFF BEFORE PAGE LAYOUT ***************
$id = (int) $_GET["id"];
$scrape = (int)$_GET["scrape"];
if (!is_valid_id($id))
show_error_msg(T_("ERROR"), T_("THATS_NOT_A_VALID_ID"), 1);
//GET ALL MYSQL VALUES FOR THIS TORRENT
//$res = SQL_Query_exec("SELECT torrents.anon, torrents.thanks, torrents.seeders, torrents.tube, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, torrents.nfo, torrents.url, torrents.last_action, torrents.numratings, torrents.name, torrents.owner, torrents.save_as, torrents.descr, torrents.visible, torrents.size, torrents.added, torrents.views, torrents.hits, torrents.times_completed, torrents.id, torrents.type, torrents.external, torrents.image1, torrents.image2, torrents.announce, torrents.numfiles, torrents.comments, torrents.freeleech, torrents.webseed, IF(torrents.numratings < 2, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating, torrents.numratings, categories.name AS cat_name, torrentlang.name AS lang_name, torrentlang.image AS lang_image, categories.parent_cat as cat_parent, users.username, users.privacy FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN torrentlang ON torrents.torrentlang = torrentlang.id LEFT JOIN users ON torrents.owner = users.id torrentgenres.name as genre_name, torrentgenres.image as genre_image FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN torrentlang ON torrents.torrentlang = torrentlang.id LEFT JOIN users ON torrents.owner = users.id LEFT JOIN torrentgenres ON torrents.torrentgenres = torrentgenres.id WHERE torrents.id = $id");
$res = SQL_Query_exec("SELECT torrents.anon, torrents.thanks, torrents.seeders, torrents.tube, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, torrents.nfo, torrents.url, torrents.last_action, torrents.numratings, torrents.name, torrents.owner, torrents.save_as, torrents.descr, torrents.visible, torrents.size, torrents.added, torrents.views, torrents.hits, torrents.times_completed, torrents.id, torrents.type, torrents.external, torrents.image1, torrents.image2, torrents.announce, torrents.numfiles, torrents.comments, torrents.freeleech, torrents.webseed, IF(torrents.numratings < 2, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating, torrents.numratings, categories.name AS cat_name, torrentlang.name AS lang_name, torrentlang.image AS lang_image, torrentgenres.name AS genre_name, torrentgenres.image AS genre_image, categories.parent_cat as cat_parent, users.username, users.privacy FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN torrentlang ON torrents.torrentlang = torrentlang.id LEFT JOIN torrentgenres ON torrents.torrentgenres = torrentgenres.id LEFT JOIN users ON torrents.owner = users.id WHERE torrents.id = $id");
$row = mysql_fetch_assoc($res);
//DECIDE IF TORRENT EXISTS
if (!$row || ($row["banned"] == "yes" && $CURUSER["edit_torrents"] == "no"))
show_error_msg(T_("ERROR"), T_("TORRENT_NOT_FOUND"), 1);
//torrent is availiable so do some stuff
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['setnow'])) {
SQL_Query_exec("UPDATE torrents SET added = NOW() WHERE id = $id");
}
Oh, kakšno presenečenje, prijatelj, kit velika za to stvar
rpm -qa|grep php-pear
php-pear-Cache-Lite-1.7.16-1.el7.noarch
php-pear-HTTP-Request-1.4.4-8.el7.noarch
php-pear-Net-SMTP-1.7.3-1.el7.noarch
php-pear-Structures-DataGrid-DataSource-Array-0.2.0-0.2.dev1.el7.noarch
php-pear-Net-DIME-1.0.2-7.el7.noarch
php-pear-Pager-2.4.9-1.el7.noarch
php-pear-Image-Canvas-0.3.5-5.el7.noarch
php-pear-phing-2.16.0-1.el7.noarch
php-pear-Net-Traceroute-0.21.3-7.el7.noarch
php-pear-Benchmark-1.2.9-5.el7.noarch
php-pear-XML-RPC-1.5.5-4.el7.noarch
php-pear-HTTP-Upload-0.9.1-11.el7.noarch
php-pear-OLE-1.0.0-0.12.RC2.el7.noarch
php-pear-Date-1.4.7-12.el7.noarch
php-pear-XML-RSS-1.0.2-10.el7.noarch
php-pear-File-1.4.1-5.el7.noarch
php-pear-File-SMBPasswd-1.0.3-8.el7.noarch
php-pear-Net-FTP-1.3.7-12.el7.noarch
php-pear-Console-CommandLine-1.2.1-1.el7.noarch
php-pear-CodeGen-PECL-1.1.3-10.el7.noarch
php-pear-Auth-radius-1.6.4-2.el7.noarch
php-pear-DB-QueryTool-1.1.2-10.el7.noarch
php-pear-Net-Sieve-1.3.4-4.el7.noarch
php-pear-PEAR-Command-Packaging-0.3.0-7.el7.noarch
php-pear-Math-Stats-0.9.1-12.el7.noarch
php-pear-Console-Color-1.0.3-7.el7.noarch
php-pear-1.9.4-22.el7.noarch
php-pear-MDB2-2.5.0-0.9.b5.el7.noarch
php-pear-Auth-SASL-1.0.6-5.el7.noarch
php-pear-XML-Serializer-0.20.2-13.el7.noarch
php-pear-Cache-1.5.6-8.el7.noarch
php-pear-Log-1.12.8-1.el7.noarch
php-pear-Numbers-Roman-1.0.2-16.el7.noarch
php-pear-Console-Getargs-1.3.5-11.el7.noarch
php-pear-Net-Curl-1.2.5-10.el7.noarch
php-pear-HTTP-Request2-2.2.1-1.el7.noarch
php-pear-XML-RPC2-1.1.2-1.el7.noarch
php-pear-Payment-Process-0.6.8-3.el7.noarch
php-pear-Structures-DataGrid-DataSource-DataObject-0.2.2-0.2.dev1.el7.noarch
php-pear-MDB2-Driver-mysql-1.5.0-0.8.b4.el7.noarch
php-pear-Var-Dump-1.0.4-9.el7.noarch
php-pear-File-Find-1.3.3-1.el7.noarch
php-pear-Console-ProgressBar-0.5.2-0.12.beta.el7.noarch
php-pear-XML-Parser-1.3.4-10.el7.noarch
php-pear-HTML-QuickForm-3.2.13-5.el7.noarch
php-pear-Validate-0.8.5-6.el7.noarch
php-pear-Net-URL-1.0.15-10.el7.noarch
php-pear-Net-URL-Mapper-0.9.1-12.el7.noarch
php-pear-Net-POP3-1.3.8-8.el7.noarch
php-pear-Structures-DataGrid-0.9.3-4.el7.noarch
php-pear-Auth-RADIUS-1.1.0-1.el7.noarch
php-pear-Auth-1.6.4-2.el7.noarch
php-pear-DB-1.7.14-6.el7.noarch
php-pear-HTML-Common-1.2.5-8.el7.noarch
php-pear-Date-Holidays-USA-0.1.1-11.el7.noarch
php-pear-Validate-Finance-CreditCard-0.5.3-11.el7.noarch
php-pear-Text-Figlet-1.0.2-2.el7.noarch
php-pear-Image-Color-1.0.4-9.el7.noarch
php-pear-HTTP-OAuth-0.3.2-1.el7.noarch
php-pear-CodeGen-1.0.7-9.el7.noarch
php-pear-Image-GraphViz-1.3.0-7.el7.noarch
php-pear-Services-Twitter-0.6.3-8.el7.noarch
php-pear-Console-Table-1.3.0-1.el7.noarch
php-pear-Services-Weather-1.4.7-2.el7.noarch
php-pear-MDB2-Driver-pgsql-1.5.0-0.8.b4.el7.noarch
php-pear-Net-LDAP2-2.1.0-1.el7.noarch
php-pear-MDB2-Driver-mysqli-1.5.0-0.8.b4.el7.noarch
php-pear-CAS-1.3.9-1.el7.noarch
php-pear-Crypt-Blowfish-1.1.0-0.10.rc2.el7.noarch
php-pear-Net-UserAgent-Detect-2.5.2-7.el7.noarch
php-pear-File-Fstab-2.0.3-2.el7.noarch
php-pear-Net-DNS2-1.3.2-2.el7.noarch
php-pear-Net-Ping-2.4.5-9.el7.noarch
php-pear-DB-DataObject-1.11.5-1.el7.noarch
php-pear-HTML-QuickForm-ElementGrid-0.1.2-4.el7.noarch
php-pear-XML-Beautifier-1.2.2-8.el7.noarch
php-pear-File-Util-1.0.0-6.el7.noarch
php-pear-Numbers-Words-0.18.1-1.el7.noarch
php-pear-Crypt-CHAP-1.5.0-7.el7.noarch
php-pear-Date-Holidays-0.21.8-2.el7.noarch
php-pear-Text-Password-1.1.1-2.el7.noarch
php-pear-crypt-gpg-1.6.3-1.el7.noarch
php-pear-Structures-DataGrid-Renderer-Smarty-0.1.5-6.el7.noarch
php-pear-PhpDocumentor-1.4.4-9.el7.noarch
php-pear-HTML-QuickForm-advmultiselect-1.5.1-11.el7.noarch
php-pear-Net-IPv4-1.3.4-7.el7.noarch
php-pear-text-wiki-1.2.1-3.el7.noarch
php-pear-Net-IDNA2-0.1.1-10.el7.noarch
php-pear-HTML-Table-1.8.3-8.el7.noarch
php-pear-HTTP-Client-1.2.1-10.el7.noarch
php-pear-Mail-1.3.0-1.el7.noarch
php-pear-SOAP-0.13.0-5.el7.noarch
php-pear-Structures-DataGrid-Renderer-Pager-0.1.3-9.el7.noarch
php-pear-Image-Text-0.7.0-1.el7.noarch
php-pear-Net-URL2-2.1.2-1.el7.noarch
php-pear-Image-Graph-0.8.0-7.el7.noarch
php-pear-Structures-DataGrid-DataSource-RSS-0.1.1-9.el7.noarch
php-pear-Mail-mimeDecode-1.5.5-7.el7.noarch
php-pear-Net-DNS-1.0.7-5.el7.noarch
php-pear-Text-Diff-1.2.2-1.el7.noarch
php-pear-Event-Dispatcher-1.1.0-8.el7.noarch
php-pear-Mail-Mime-1.10.2-1.el7.noarch
php-pear-PHP-CodeSniffer-2.9.1-1.el7.noarch
php-pear-File-CSV-1.0.0-6.el7.noarch
php-pear-File-Passwd-1.1.7-8.el7.noarch
php-pear-console-color2-0.1.2-2.el7.noarch
php-pear-Text-CAPTCHA-1.0.1-1.el7.noarch
php-pear-Auth-samba-1.6.4-2.el7.noarch
php-pear-DB-DataObject-FormBuilder-1.0.2-5.el7.noarch
php-pear-Net-IMAP-1.1.3-1.el7.noarch
php-pear-HTTP-1.4.1-12.el7.noarch
php-pear-XML-SVG-1.1.0-3.el7.noarch
php-pear-Net-Socket-1.0.14-1.el7.noarch
// MUST use pear for SMTP
$site_config["mail_type"] = "pear"; //Use PEAR for Gmail, otherwise, use PHP
$site_config["mail_smtp_host"] = "smtp.gmail.com"; // SMTP server hostname. Google Gmail is smtp.gmail.com
$site_config["mail_smtp_port"] = "465"; // SMTP server port. Google Gmail uses 465
$site_config["mail_smtp_ssl"] = true; // true to use SSL. True for Google Gmail
$site_config["mail_smtp_auth"] = true; // true to use auth for SMTP. True for Google Gmail
$site_config["mail_smtp_user"] = "my-email@gmail.com"; // SMTP username. Will be your gmail account ie: your_gmail_addy@gmail.com
$site_config["mail_smtp_pass"] = "my-password"; // SMTP password. Gmail account password if using gmail
$site_config['WELCOMEEMAIL'] = true;
$site_config['WELCOMEEMAILBODY'] = '
<html>
<head>
<style>body{font-family:arial,sans-serif,helvetica;background-color:rgba(236,236,236,1);margin:0;padding:0}.email-header{background:width:100%;height:56px;margin-bottom:20px}.email-body{box-shadow:0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);background:rgba(255,255,255,1);padding:10 10px 50px 10px;font-size:17px;width:90%;margin:0 auto;text-align:center;overflow:auto}.welcome-msg{font-size:30px;text-align:center;padding:0 20px 20px 0}.welcome-msg2{font-size:17px;text-align:center;padding:0 20px 20 0}.email-body .welcome-msg{padding-top:15px}.email-body a{margin-left:-20px;margin-top:10px}.btn-signin{box-shadow:inset 0 1px 0 0 rgba(242,156,147,1);background:linear-gradient(to bottom,rgba(254,26,0,1) 5%,rgba(206,1,0,1) 100%);background-color:rgba(254,26,0,1);border-radius:6px;border:1px solid rgba(216,53,38,1);display:inline-block;cursor:pointer;color:rgba(255,255,255,1);font-family:Arial;font-size:15px;font-weight:bold;padding:6px 24px;text-decoration:none;text-shadow:0 1px 0 rgba(178,62,53,1)}.btn-signin:hover{background:linear-gradient(to bottom,rgba(206,1,0,1) 5%,rgba(254,26,0,1) 100%);background-color:rgba(206,1,0,1)}.btn-signin:active{position:relative;top:1px}</style>
</head>
<body>
<div class="email-header">
</div>
<div class="welcome-msg">Welcome!</div>
<div class="welcome-msg2">Your account has been activated.</div>
<div class="email-body">
<div class="welcome-msg">Your only movie torrents!</div>
<div class="email-content">
This is my email body. Text will go here.
</div>
<div class="welcome-msg">Sign In</div>
<a href="https://TRACKER.com/signin/" class="btn-signin">Sign In</a>
</div>
</body>
</html>';
(delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[173.194.202.27]:25: No route to host)
#
# Postfix master process configuration file. For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ***** Unused items removed *****
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
-o content_filter=smtp-amavis:127.0.0.1:10024
-o receive_override_options=no_address_mappings
#
## Enable SMTP on port 587 only for authenticated/TLS clients
submission inet n - n - - smtpd
-o smtpd_enforce_tls=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
## Enable SMTP on port 465 only for authenticated/SSL clients
smtps inet n - n - - smtpd
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
#
pickup fifo n - n 60 1 pickup
-o content_filter=
-o receive_override_options=no_header_body_checks
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
# ====================================================================
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
#
# spam/virus section
#
smtp-amavis unix - - y - 2 smtp
-o smtp_data_done_timeout=1200
-o disable_dns_lookups=yes
-o smtp_send_xforward_command=yes
127.0.0.1:10025 inet n - y - - smtpd
-o content_filter=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
-o receive_override_options=no_header_body_checks
-o smtpd_helo_required=no
-o smtpd_client_restrictions=
-o smtpd_restriction_classes=
-o disable_vrfy_command=no
-o strict_rfc821_envelopes=yes
#
# Dovecot LDA
dovecot unix - n n - - pipe
flags=DRhu user=vmail:mail argv=/usr/libexec/dovecot/deliver -d ${recipient}
#
# Vacation mail
vacation unix - n n - - pipe
flags=Rq user=vacation argv=/usr/local/cwp/php71/bin/php -q /var/spool/vacation/vacation.php ${sender} ${recipient}
# SPF check
spfpolicy unix - n n - - spawn
user=nobody argv=/usr/bin/python /usr/libexec/postfix/policyd-spf
CREATE TABLE `torrentsubs` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(30) NOT NULL DEFAULT '',
`image` varchar(255) NOT NULL DEFAULT '',
`sort_index` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=latin1;
INSERT INTO `torrentsubs` VALUES (1,'Bulgarian','Bulgaria.png',0),(2,'English','UK.png',1),(3,'Italiano','Italy.png',2),(4,'France','France.png',3),(5,'German','Germany.png',4),(6,'Spain','Espana.png',5),(7,'Russian','Russia.png',6),(8,'Other','Other.png',8);