mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 17:28:55 +00:00
Fix coding in games.tpl
This commit is contained in:
@@ -1,58 +0,0 @@
|
||||
##
|
||||
# You should look at the following URL's in order to grasp a solid understanding
|
||||
# of Nginx configuration files in order to fully unleash the power of Nginx.
|
||||
# http://wiki.nginx.org/Pitfalls
|
||||
# http://wiki.nginx.org/QuickStart
|
||||
# http://wiki.nginx.org/Configuration
|
||||
# http://interfacelab.com/nginx-php-fpm-apc-awesome/
|
||||
#
|
||||
# Generally, you will want to move this file somewhere, and start with a clean
|
||||
# file but keep this around for reference. Or just disable in sites-enabled.
|
||||
#
|
||||
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
|
||||
##
|
||||
|
||||
server {
|
||||
# Change these settings to match your machine
|
||||
listen 80; ## listen for ipv4; this line is default and implied
|
||||
listen [::]:80 default_server ipv6only=on; ## listen for ipv6
|
||||
server_name localhost; #this must be change to an ip or fqdn or else redirects will not work
|
||||
|
||||
# Everything below here doesn't need to be changed
|
||||
access_log /var/log/nginx/access.log;
|
||||
error_log /var/log/nginx/error.log;
|
||||
|
||||
root /var/www/newznab/www/;
|
||||
index index.html index.htm index.php;
|
||||
|
||||
location ~* \.(?:ico|css|js|gif|inc|txt|gz|xml|png|jpe?g) {
|
||||
expires max;
|
||||
add_header Pragma public;
|
||||
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
|
||||
}
|
||||
|
||||
location / { try_files $uri $uri/ @rewrites; }
|
||||
|
||||
location @rewrites {
|
||||
rewrite ^/([^/\.]+)/([^/]+)/([^/]+)/? /index.php?page=$1&id=$2&subpage=$3 last;
|
||||
rewrite ^/([^/\.]+)/([^/]+)/?$ /index.php?page=$1&id=$2 last;
|
||||
rewrite ^/([^/\.]+)/?$ /index.php?page=$1 last;
|
||||
}
|
||||
|
||||
location /admin { }
|
||||
location /install { }
|
||||
|
||||
location ~ \.php$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
|
||||
|
||||
# With php5-cgi alone:
|
||||
#fastcgi_pass 127.0.0.1:9000;
|
||||
# With php5-fpm:
|
||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||
#fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
#include /etc/nginx/fastcgi_params;
|
||||
}
|
||||
}
|
||||
@@ -13,212 +13,213 @@
|
||||
|
||||
|
||||
<form id="nzb_multi_operations_form" action="get">
|
||||
<div class="box-body"
|
||||
<div class="row">
|
||||
<div class="col-xlg-12 portlets">
|
||||
<div class="panel">
|
||||
<div class="panel-content pagination2">
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="nzb_multi_operations">
|
||||
View: <strong>Covers</strong> | <a
|
||||
href="{$smarty.const.WWW_TOP}/browse?t={$category}">List</a><br/>
|
||||
With Selected:
|
||||
<div class="btn-group">
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_download btn btn-sm btn-success"
|
||||
value="Download NZBs"/>
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_cart btn btn-sm btn-info"
|
||||
value="Add to Cart"/>
|
||||
{if isset($sabintegrated)}
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-xlg-12 portlets">
|
||||
<div class="panel">
|
||||
<div class="panel-content pagination2">
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="nzb_multi_operations">
|
||||
View: <strong>Covers</strong> | <a
|
||||
href="{$smarty.const.WWW_TOP}/browse?t={$category}">List</a><br/>
|
||||
With Selected:
|
||||
<div class="btn-group">
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_sab btn btn-sm btn-primary"
|
||||
value="Send to Queue"/>
|
||||
{/if}
|
||||
{if isset($nzbgetintegrated)}
|
||||
class="nzb_multi_operations_download btn btn-sm btn-success"
|
||||
value="Download NZBs"/>
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_nzbget btn btn-sm btn-primary"
|
||||
value="Send to NZBGet"/>
|
||||
{/if}
|
||||
{if isset($isadmin)}
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_edit btn btn-sm btn-warning"
|
||||
value="Edit"/>
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_delete btn btn-sm btn-danger"
|
||||
value="Delete"/>
|
||||
{/if}
|
||||
class="nzb_multi_operations_cart btn btn-sm btn-info"
|
||||
value="Add to Cart"/>
|
||||
{if isset($sabintegrated)}
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_sab btn btn-sm btn-primary"
|
||||
value="Send to Queue"/>
|
||||
{/if}
|
||||
{if isset($nzbgetintegrated)}
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_nzbget btn btn-sm btn-primary"
|
||||
value="Send to NZBGet"/>
|
||||
{/if}
|
||||
{if isset($isadmin)}
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_edit btn btn-sm btn-warning"
|
||||
value="Edit"/>
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_delete btn btn-sm btn-danger"
|
||||
value="Delete"/>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{$pager}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{$pager}
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
{foreach from=$results item=result}
|
||||
{assign var="msplits" value=","|explode:$result.grp_release_id}
|
||||
{assign var="mguid" value=","|explode:$result.grp_release_guid}
|
||||
{assign var="mnfo" value=","|explode:$result.grp_release_nfoid}
|
||||
{assign var="mgrp" value=","|explode:$result.grp_release_grpname}
|
||||
{assign var="mname" value="#"|explode:$result.grp_release_name}
|
||||
{assign var="mpostdate" value=","|explode:$result.grp_release_postdate}
|
||||
{assign var="msize" value=","|explode:$result.grp_release_size}
|
||||
{assign var="mtotalparts" value=","|explode:$result.grp_release_totalparts}
|
||||
{assign var="mcomments" value=","|explode:$result.grp_release_comments}
|
||||
{assign var="mgrabs" value=","|explode:$result.grp_release_grabs}
|
||||
{assign var="mpass" value=","|explode:$result.grp_release_password}
|
||||
{assign var="minnerfiles" value=","|explode:$result.grp_rarinnerfilecount}
|
||||
{assign var="mhaspreview" value=","|explode:$result.grp_haspreview}
|
||||
{foreach from=$msplits item=m name=loop}
|
||||
{if $smarty.foreach.loop.first}
|
||||
<div class="panel">
|
||||
<div class="panel-content">
|
||||
<div class="row">
|
||||
<div class="col-md-2 no-gutter">
|
||||
<a title="View details"
|
||||
href="{$smarty.const.WWW_TOP}/details/{$mguid[$m@index]}/{$mname[$m@index]|escape:"htmlall"}">
|
||||
<img src="{$smarty.const.WWW_TOP}/covers/games/{if $result.cover == 1}{$result.gamesinfo_id}.jpg{else}no-cover.jpg{/if}"
|
||||
width="140" border="0"
|
||||
alt="{$result.title|escape:"htmlall"}"/>
|
||||
</a>
|
||||
{if $result.classused == "gb"}<a class="label label-default"
|
||||
target="_blank"
|
||||
href="{$site->dereferrer_link}{$result.url}"
|
||||
name="giantbomb{$result.gamesinfo_id}"
|
||||
title="View GiantBomb page">
|
||||
GiantBomb</a>{/if}
|
||||
{if $result.classused == "steam"}<a class="label label-default"
|
||||
target="_blank"
|
||||
href="{$site->dereferrer_link}{$result.url|escape:"htmlall"}"
|
||||
name="steam{$result.gamesinfo_id}"
|
||||
title="View Steam page">
|
||||
Steam</a>{/if}
|
||||
{if $result.classused == "gl"}<a class="label label-default"
|
||||
target="_blank"
|
||||
href="{$site->dereferrer_link}{$result.url|escape:"htmlall"}"
|
||||
name="greenlight{$result.gamesinfo_id}"
|
||||
title="View greenlight page">
|
||||
GreenLight</a>{/if}
|
||||
{if $result.classused == "desura"}<a class="label label-default"
|
||||
<hr>
|
||||
{foreach from=$results item=result}
|
||||
{assign var="msplits" value=","|explode:$result.grp_release_id}
|
||||
{assign var="mguid" value=","|explode:$result.grp_release_guid}
|
||||
{assign var="mnfo" value=","|explode:$result.grp_release_nfoid}
|
||||
{assign var="mgrp" value=","|explode:$result.grp_release_grpname}
|
||||
{assign var="mname" value="#"|explode:$result.grp_release_name}
|
||||
{assign var="mpostdate" value=","|explode:$result.grp_release_postdate}
|
||||
{assign var="msize" value=","|explode:$result.grp_release_size}
|
||||
{assign var="mtotalparts" value=","|explode:$result.grp_release_totalparts}
|
||||
{assign var="mcomments" value=","|explode:$result.grp_release_comments}
|
||||
{assign var="mgrabs" value=","|explode:$result.grp_release_grabs}
|
||||
{assign var="mpass" value=","|explode:$result.grp_release_password}
|
||||
{assign var="minnerfiles" value=","|explode:$result.grp_rarinnerfilecount}
|
||||
{assign var="mhaspreview" value=","|explode:$result.grp_haspreview}
|
||||
{foreach from=$msplits item=m name=loop}
|
||||
{if $smarty.foreach.loop.first}
|
||||
<div class="panel">
|
||||
<div class="panel-content">
|
||||
<div class="row">
|
||||
<div class="col-md-2 no-gutter">
|
||||
<a title="View details"
|
||||
href="{$smarty.const.WWW_TOP}/details/{$mguid[$m@index]}/{$mname[$m@index]|escape:"htmlall"}">
|
||||
<img src="{$smarty.const.WWW_TOP}/covers/games/{if $result.cover == 1}{$result.gamesinfo_id}.jpg{else}no-cover.jpg{/if}"
|
||||
width="140" border="0"
|
||||
alt="{$result.title|escape:"htmlall"}"/>
|
||||
</a>
|
||||
{if $result.classused == "gb"}<a class="label label-default"
|
||||
target="_blank"
|
||||
href="{$site->dereferrer_link}{$result.url}"
|
||||
name="giantbomb{$result.gamesinfo_id}"
|
||||
title="View GiantBomb page">
|
||||
GiantBomb</a>{/if}
|
||||
{if $result.classused == "steam"}<a class="label label-default"
|
||||
target="_blank"
|
||||
href="{$site->dereferrer_link}{$result.url|escape:"htmlall"}"
|
||||
name="steam{$result.gamesinfo_id}"
|
||||
title="View Steam page">
|
||||
Steam</a>{/if}
|
||||
{if $result.classused == "gl"}<a class="label label-default"
|
||||
target="_blank"
|
||||
href="{$site->dereferrer_link}{$result.url|escape:"htmlall"}"
|
||||
name="desura{$result.gamesinfo_id}"
|
||||
title="View Desura page">
|
||||
Desura</a>{/if}
|
||||
{if $result.nfoid > 0}<a
|
||||
href="{$smarty.const.WWW_TOP}/nfo/{$mguid[$m@index]}/{$mname[$m@index]|escape:"htmlall"}"
|
||||
title="View NFO" class="label label-default" rel="nfo">
|
||||
NFO</a>{/if}
|
||||
<a class="label label-default"
|
||||
href="{$smarty.const.WWW_TOP}/browse?g={$result.group_name}"
|
||||
title="Browse releases in {$result.group_name|replace:"alt.binaries":"a.b"}">Group</a>
|
||||
</div>
|
||||
<div class="col-md-10 no-gutter">
|
||||
<h4><a title="View details"
|
||||
href="{$smarty.const.WWW_TOP}/details/{$mguid[$m@index]}/{$mname[$m@index]|escape:"htmlall"}">{$result.title|escape:"htmlall"}</a>
|
||||
(<a class="title" title="{$result.year}"
|
||||
href="{$smarty.const.WWW_TOP}/games?year={$result.year}">{$result.year}</a>)
|
||||
</h4>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox"
|
||||
class="nzb_check"
|
||||
value="{$mguid[$m@index]}" id="chksingle"/>
|
||||
<span class="label label-default">{$msize[$m@index]|fsize_format:"MB"}</span>
|
||||
name="greenlight{$result.gamesinfo_id}"
|
||||
title="View greenlight page">
|
||||
GreenLight</a>{/if}
|
||||
{if $result.classused == "desura"}<a class="label label-default"
|
||||
target="_blank"
|
||||
href="{$site->dereferrer_link}{$result.url|escape:"htmlall"}"
|
||||
name="desura{$result.gamesinfo_id}"
|
||||
title="View Desura page">
|
||||
Desura</a>{/if}
|
||||
{if $result.nfoid > 0}<a
|
||||
href="{$smarty.const.WWW_TOP}/nfo/{$mguid[$m@index]}/{$mname[$m@index]|escape:"htmlall"}"
|
||||
title="View NFO" class="label label-default" rel="nfo">
|
||||
NFO</a>{/if}
|
||||
<a class="label label-default"
|
||||
href="{$smarty.const.WWW_TOP}/browse?g={$result.group_name}"
|
||||
title="Browse releases in {$result.group_name|replace:"alt.binaries":"a.b"}">Group</a>
|
||||
</div>
|
||||
<div class="col-md-10 no-gutter">
|
||||
<h4><a title="View details"
|
||||
href="{$smarty.const.WWW_TOP}/details/{$mguid[$m@index]}/{$mname[$m@index]|escape:"htmlall"}">{$result.title|escape:"htmlall"}</a>
|
||||
(<a class="title" title="{$result.year}"
|
||||
href="{$smarty.const.WWW_TOP}/games?year={$result.year}">{$result.year}</a>)
|
||||
</h4>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox"
|
||||
class="nzb_check"
|
||||
value="{$mguid[$m@index]}" id="chksingle"/>
|
||||
<span class="label label-default">{$msize[$m@index]|fsize_format:"MB"}</span>
|
||||
<span class="label label-default">Posted {$mpostdate[$m@index]|timeago}
|
||||
ago</span>
|
||||
{if isset($isadmin)}<a class="label label-warning"
|
||||
href="{$smarty.const.WWW_TOP}/admin/release-edit.php?id={$result.grp_release_id}&from={$smarty.server.REQUEST_URI}"
|
||||
title="Edit release">
|
||||
Edit</a>{/if}
|
||||
<br/>
|
||||
{if isset($result.genre) && $result.genre != ""}
|
||||
<b>Genre:</b>
|
||||
{$result.genre}
|
||||
{if isset($isadmin)}<a class="label label-warning"
|
||||
href="{$smarty.const.WWW_TOP}/admin/release-edit.php?id={$result.grp_release_id}&from={$smarty.server.REQUEST_URI}"
|
||||
title="Edit release">
|
||||
Edit</a>{/if}
|
||||
<br/>
|
||||
{/if}
|
||||
{if isset($result.esrb) && $result.esrb != ""}
|
||||
<b>Rating:</b>
|
||||
{$result.esrb}
|
||||
<br/>
|
||||
{/if}
|
||||
{if isset($result.publisher) && $result.publisher != ""}
|
||||
<b>Publisher:</b>
|
||||
{$result.publisher}
|
||||
<br/>
|
||||
{/if}
|
||||
{if isset($result.releasedate) && $result.releasedate != ""}
|
||||
<b>Released:</b>
|
||||
{$result.releasedate|date_format}
|
||||
<br/>
|
||||
{/if}
|
||||
{if isset($result.review) && $result.review != ""}
|
||||
<b>Review:</b>
|
||||
{$result.review|stripslashes|escape:'htmlall'}
|
||||
<br/>
|
||||
{/if}
|
||||
<div>
|
||||
<a role="button" class="btn btn-default btn-xs"
|
||||
href="{$smarty.const.WWW_TOP}/getnzb/{$mguid[$m@index]}/{$mname[$m@index]|escape:"htmlall"}"><i
|
||||
class="fa fa-download"></i><span
|
||||
class="badge">{$mgrabs[$m@index]}
|
||||
Grab{if $mgrabs[$m@index] != 1}s{/if}</span></a>
|
||||
<a role="button" class="btn btn-default btn-xs"
|
||||
href="{$smarty.const.WWW_TOP}/details/{$mguid[$m@index]}/{$mname[$m@index]|escape:"htmlall"}#comments"><i
|
||||
class="fa fa-comment-o"></i><span
|
||||
class="badge">{$mcomments[$m@index]}
|
||||
Comment{if $mcomments[$m@index] != 1}s{/if}</span></a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{if isset($result.genre) && $result.genre != ""}
|
||||
<b>Genre:</b>
|
||||
{$result.genre}
|
||||
<br/>
|
||||
{/if}
|
||||
{if isset($result.esrb) && $result.esrb != ""}
|
||||
<b>Rating:</b>
|
||||
{$result.esrb}
|
||||
<br/>
|
||||
{/if}
|
||||
{if isset($result.publisher) && $result.publisher != ""}
|
||||
<b>Publisher:</b>
|
||||
{$result.publisher}
|
||||
<br/>
|
||||
{/if}
|
||||
{if isset($result.releasedate) && $result.releasedate != ""}
|
||||
<b>Released:</b>
|
||||
{$result.releasedate|date_format}
|
||||
<br/>
|
||||
{/if}
|
||||
{if isset($result.review) && $result.review != ""}
|
||||
<b>Review:</b>
|
||||
{$result.review|stripslashes|escape:'htmlall'}
|
||||
<br/>
|
||||
{/if}
|
||||
<div>
|
||||
<a role="button" class="btn btn-default btn-xs"
|
||||
href="{$smarty.const.WWW_TOP}/getnzb/{$mguid[$m@index]}/{$mname[$m@index]|escape:"htmlall"}"><i
|
||||
class="fa fa-download"></i><span
|
||||
class="badge">{$mgrabs[$m@index]}
|
||||
Grab{if $mgrabs[$m@index] != 1}s{/if}</span></a>
|
||||
<a role="button" class="btn btn-default btn-xs"
|
||||
href="{$smarty.const.WWW_TOP}/details/{$mguid[$m@index]}/{$mname[$m@index]|escape:"htmlall"}#comments"><i
|
||||
class="fa fa-comment-o"></i><span
|
||||
class="badge">{$mcomments[$m@index]}
|
||||
Comment{if $mcomments[$m@index] != 1}s{/if}</span></a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="nzb_multi_operations">
|
||||
View: <strong>Covers</strong> | <a
|
||||
href="{$smarty.const.WWW_TOP}/browse?t={$category}">List</a><br/>
|
||||
With Selected:
|
||||
<div class="btn-group">
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_download btn btn-sm btn-success"
|
||||
value="Download NZBs"/>
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_cart btn btn-sm btn-info"
|
||||
value="Add to Cart"/>
|
||||
{if isset($sabintegrated)}
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="nzb_multi_operations">
|
||||
View: <strong>Covers</strong> | <a
|
||||
href="{$smarty.const.WWW_TOP}/browse?t={$category}">List</a><br/>
|
||||
With Selected:
|
||||
<div class="btn-group">
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_sab btn btn-sm btn-primary"
|
||||
value="Send to Queue"/>
|
||||
{/if}
|
||||
{if isset($nzbgetintegrated)}
|
||||
class="nzb_multi_operations_download btn btn-sm btn-success"
|
||||
value="Download NZBs"/>
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_nzbget btn btn-sm btn-primary"
|
||||
value="Send to NZBGet"/>
|
||||
{/if}
|
||||
{if isset($isadmin)}
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_edit btn btn-sm btn-warning"
|
||||
value="Edit"/>
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_delete btn btn-sm btn-danger"
|
||||
value="Delete"/>
|
||||
{/if}
|
||||
class="nzb_multi_operations_cart btn btn-sm btn-info"
|
||||
value="Add to Cart"/>
|
||||
{if isset($sabintegrated)}
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_sab btn btn-sm btn-primary"
|
||||
value="Send to Queue"/>
|
||||
{/if}
|
||||
{if isset($nzbgetintegrated)}
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_nzbget btn btn-sm btn-primary"
|
||||
value="Send to NZBGet"/>
|
||||
{/if}
|
||||
{if isset($isadmin)}
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_edit btn btn-sm btn-warning"
|
||||
value="Edit"/>
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_delete btn btn-sm btn-danger"
|
||||
value="Delete"/>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{$pager}
|
||||
<div class="col-md-4">
|
||||
{$pager}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user