summaryrefslogtreecommitdiff
path: root/data/tpl/main
blob: d07395373e7f6007272c9e3729cf090fe583e8dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
[[+ defs.pl ]]
[[ %p = %{$X->{page}}; gettitle(); ]]

<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
  <title>[[: $p{PageTitle} ]]- :: VNDB</title>
  <link href="[[: $p{st} ]]/files/style.css?[[= $VNDB::VERSION ]]" rel="stylesheet" type="text/css" media="screen" />
  <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
[[ if($p{redit} || $p{vnedit}) { ]]-
  <script src="[[: $p{st} ]]/files/dyna.js?[[= $VNDB::VERSION ]]" type="text/javascript"></script>
[[ } ]]-
  <script src="[[: $p{st} ]]/files/def.js?[[= $VNDB::VERSION ]]" type="text/javascript"></script>
[[ if(0 && $p{devshit}) { ]]-
  <link rel="icon" href="/favicon.gif" type="image/gif" />
  <meta name="robots" content="noindex, nofollow" />
[[ } elsif(
         grep($p{$_}, qw| userlist userpage userlogin userreg userpass vnlist rlist hist |)
      || ($p{ttag} && $p{ttag}{iid})
      || ($p{vnpage} && $p{vnpage}{page} eq 'stats')
      || grep { $p{$_} && $p{$_}{change} } qw|vnpage ppage rpage|
   ) { ]]-
  <meta name="robots" content="noindex, follow" />
[[ }]]-

[[if($p{hist}){ ]]
  <link rel="alternate" type="application/rss+xml" title="Recent changes" href="
   [[= (!$p{hist}{type}?'/hist':'/'.$p{hist}{type}.$p{hist}{id}.'/hist').'/rss.xml'.(!$p{hist}{type}?'?t='.$p{hist}{selt}.';e='.$p{hist}{sele}:$p{hist}{type} eq 'v' && $p{hist}{seli} ? '?i=1':'') ]]" />
[[ } ]]-
</head>

<body>
<div id="header">
  <form id="search" method="get" action="/v/search">
    <fieldset>
    <legend>Search</legend>
    <input id="searchfield" type="text" name="sq" value="search" style="color: #999" />
    <input id="searchsubmit" type="submit" value="Search" />
    </fieldset>
  </form>
  <h1><a href="http://vndb.org/">vndb.org</a> / #vndb @ irc.synirc.net <a href="/">
   [[ if($p{devshit}) { ]]<b style="color: red">The VNDB.org Testing Grounds</b>[[ } else { ]]<b>The Visual Novel Database</b>[[ } ]]</a></h1>
</div>


<div id="page">

<div id="content">
[[                                                                   # = noindex-tag (see above) ]]
[[ if($p{home})      { %d = %{$p{home}};      ]] [[+ home      ]][[ }  ]]
[[ if($p{userlogin}) { %d = %{$p{userlogin}}; ]] [[+ userlogin ]][[ }  ]]
[[ if($p{userreg})   { %d = %{$p{userreg}};   ]] [[+ userreg   ]][[ }  ]]
[[ if($p{userpass})  { %d = %{$p{userpass}};  ]] [[+ userpass  ]][[ }  ]]
[[ if($p{useredit})  { %d = %{$p{useredit}};  ]] [[+ useredit  ]][[ }  ]]
[[ if($p{userlist})  { %d = %{$p{userlist}};  ]] [[+ userlist  ]][[ }# ]]
[[ if($p{userpage})  { %d = %{$p{userpage}};  ]] [[+ userpage  ]][[ }# ]]
[[ if($p{vnpage})    { %d = %{$p{vnpage}};    ]] [[+ vnpage    ]][[ }  ]]
[[ if($p{vnedit})    { %d = %{$p{vnedit}};    ]] [[+ vnedit    ]][[ }  ]]
[[ if($p{redit})     { %d = %{$p{redit}};     ]] [[+ redit     ]][[ }  ]]
[[ if($p{vnbrowse})  { %d = %{$p{vnbrowse}};  ]] [[+ vnbrowse  ]][[ }  ]]
[[ if($p{pbrowse})   { %d = %{$p{pbrowse}};   ]] [[+ pbrowse   ]][[ }  ]]
[[ if($p{pedit})     { %d = %{$p{pedit}};     ]] [[+ pedit     ]][[ }  ]]
[[ if($p{ppage})     { %d = %{$p{ppage}};     ]] [[+ ppage     ]][[ }  ]]
[[ if($p{vnlist})    { %d = %{$p{vnlist}};    ]] [[+ vnlist    ]][[ }# ]]
[[ if($p{rlist})     { %d = %{$p{rlist}};     ]] [[+ rlist     ]][[ }# ]]
[[ if($p{hist})      { %d = %{$p{hist}};      ]] [[+ hist      ]][[ }# ]]
[[ if($p{rpage})     { %d = %{$p{rpage}};     ]] [[+ rpage     ]][[ }  ]]
[[ if($p{docs})      { %d = %{$p{docs}};      ]] [[+ docs      ]][[ }  ]]
[[ if($p{tindex})    { %d = %{$p{tindex}};    ]] [[+ tindex    ]][[ }  ]]
[[ if($p{ttag})      { %d = %{$p{ttag}};      ]] [[+ ttag      ]][[ }# ]]
[[ if($p{tthread})   { %d = %{$p{tthread}};   ]] [[+ tthread   ]][[ }  ]]
[[ if($p{tedit})     { %d = %{$p{tedit}};     ]] [[+ tedit     ]][[ }  ]]
[[ if($p{error})     { %d = %{$p{error}};     ]] [[+ error     ]][[ }  ]]
</div>


<div id="side"><div><div>

 <h2>Menu</h2>
 <ul>
  <li><a href="/">Home</a></li>
  <li><a href="/v">Browse</a> | <a href="/v/search">Search</a></li>
  <li><a href="/p">Producers</a></li>
  <li><a href="/u/list">Users</a></li>
  <li><a href="/hist">Recent changes</a></li>
  <li><a href="/t">Discussion board</a></li>
  <li><a href="/d6">FAQ</a></li>
 </ul>

-[[ if(!$p{AuthLoggedin}) { ]]-
 <h2>Login</h2>
 <form method="post" action="/nospam?/u/login" id="loginform">
  <fieldset>
  <legend>Login</legend>
  <input type="text" id="usrname" name="username" />
  <input type="password" id="usrpass" name="userpass" />
  <input type="submit" value="Login" />
  </fieldset>
 </form>
 <p>
  <a href="/u/register">register</a> or <a href="/u/newpass">forgot password?</a>
 </p>
[[ } else { ]]-
 <h2>User menu</h2>
 <ul>
  <li><a href="/u[[= $p{AuthId} ]]">[[: $p{AuthUsername} ]]</a> ([[: $p{AuthRankname} ]])</li>
  <!--<li><a href="/u[[= $p{AuthId} ]]/edit">My profile</a></li>-->
  <li><a href="/u[[= $p{AuthId} ]]/list">My visual novel list</a></li>
  <li><a href="/t/u[[= $p{AuthId} ]]">My messages</a></li>
  <li><a href="/u[[= $p{AuthId} ]]/hist">My recent changes</a></li>
 [[ if($p{Authedit}) { ]]-
  <li>&nbsp;</li>
  <li><a href="/v/new">Add visual novel</a></li>
  <li><a href="/p/add">Add producer</a></li>
 [[ } ]]
  <li>&nbsp;</li>
  <li><a href="/u/logout">Logout</a></li>
 </ul>
[[ } ]]-

-[[ #</div></div><div><div> ]]
 <h2>Statistics</h2>
 <ul>
  <li><b>[[= $p{Statvn}||0 ]]</b> visual novels</li>
  <li><b>[[= $p{Statproducers}||0 ]]</b> producers</li>
  <li><b>[[= $p{Statreleases}||0 ]]</b> releases</li>
  <li><b>[[= $p{Statusers}||0 ]]</b> users</li>
 </ul>
[[ if(0) { ]] <h2>Most popular</h2>
 <ul>[[ for (@{$p{popular}}) { ]]-
  <li><a href="/v[[: $_->{id} ]]" title="[[: $_->{title} ]]">[[: length($_->{title})>30 ? (substr($_->{title}, 0, 27).'...') : $_->{title} ]]</a></li>[[ } ]]-
  <li class="more"><a href="/v/all?s=votes&amp;o=d">More...</a></li>
 </ul>[[ } ]]-
</div></div></div>

</div>

<div id="footer">
 <p>
  vndb v[[: $VNDB::VERSION ]]- |
  <a href="/d7">about us</a> |
  <a href="mailto:contact@vndb.org">contact@vndb.org</a> |
  designed by <a href="http://www.freecsstemplates.org/">free css templates</a>.
 </p>
</div>

-[[ if(0 && $p{devshit}) { ]]-
 <pre id="debug">SQL Queries used:<br />
[[= $p{devshit} ]]
</pre>
[[ } ]]-

</body>
</html>