/
index.php
314 lines (307 loc) · 13.9 KB
/
index.php
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<?php
include('bdd.php');
include('pages/functions.php');
if(isset($_GET['page'])){
if(preg_match("/pages\/artist/",$_GET['page'])){
$idart = substr($_GET["page"], 12, -4);
$rowb = recuperation($idart,'artist');
echo "<title>$rowb[2]</title>";
$titrepage = $rowb[2];
}
elseif(preg_match("/pages\/enreg/",$_GET['page'])){
$idart = substr($_GET["page"], 11, -4);
$rowb = recuperation($idart,'enregistrement');
echo "<title>$rowb[7]</title>";
$titrepage = $rowb[7];
}
elseif(preg_match("/pages\/event/",$_GET['page'])){
$idevent = substr($_GET["page"], 11, -4);
$rowb = recuperation($idevent,'evenement');
echo "<title>$rowb[1]</title>";
$titrepage = $rowb[1];
}
elseif(preg_match("/admin/",$_GET['page'])){
echo "<title>Connexion & Inscription</title>";
$titrepage = "Connexion & Inscription";
}
elseif(preg_match("/param/",$_GET['page'])){
echo "<title>Modifier mes paramètres</title>";
$titrepage = "Modifier mes paramètres";
}
elseif(preg_match("/galery-artist-Compositeur/",$_GET['page'])){
echo "<title>Galerie des compositeurs</title>";
$titrepage = "Galerie des compositeurs";
}
elseif(preg_match("/galery-artist-Interprete/",$_GET['page'])){
echo "<title>Galerie des interpretes</title>";
$titrepage = "Galerie des interpretes";
}
elseif(preg_match("/galery-event/",$_GET['page'])){
echo "<title>Galerie des évènements</title>";
$titrepage = "Galerie des évènements";
}
else{
echo "<title>Classic Quest - Retrouvez les biographies des compositeurs et interpretes de la musique classique</title>";
$titrepage = "Retrouvez les biographies des compositeurs et interpretes de la musique classique";
}
}
else{
echo "<title>Classic Quest - Retrouvez les biographies des compositeurs et interpretes de la musique classique</title>";
$titrepage = "Retrouvez les biographies des compositeurs et interpretes de la musique classique";
}
echo '<script>
<!--
// Title bar variables
var msg="Classic Quest : '.$titrepage.' | ";
var speed=200;
function ScrollTitle()
{
document.title=msg;
msg=msg.substring(1,msg.length)+msg.charAt(0);
setTimeout("ScrollTitle()",speed);
}
ScrollTitle();
//-->
</script>';
?>
<!-- Les verificaiton moteur de recherche -->
<meta name="google-site-verification" content="OuEb2kYVV6I-j4-80whAH2DQM5mFuxZR6kbnocmCrQ0" />
<meta name="msvalidate.01" content="734EC8B806B3910A95B2452CC192D1B9" />
<!-- Info du site -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Description" content="Galerie des compositeurs et enregistrements de la musique classique, ecrit par les utilisateurs inscrit. Avec la possibilité de télécharger les fiches en pdf." />
<meta name="Keywords" content="musique, classique, classic, beethoven, roques, steve, haris, seldon, jquery, php, css, js, mozart, bach, luc, sonneur, opengeek, github, gratuit, inscrit, connecter, redacteur, compositeur, enregistrement, opus, oeuvre, baroque, interprete, lieu, date, biographie, histoire, biography" />
<meta name="Subject" content="Musique classique" />
<meta name="Author" content="Roques Steve" />
<meta name="Publisher" content="Roques Steve" />
<meta name="Reply-To" content="haris.seldon@gmail.com" />
<meta name="Robots" content="all" />
<meta name="Rating" content="general" />
<meta name="Distribution" content="global" />
<!-- style -->
<link rel="icon" type="image/gif" href="sources/favicon.gif">
<link rel="alternate" type="application/rss+xml" href="outils/rss.php" title="Classic Quest">
<link rel="stylesheet" type="text/css" href="css/moncss.css" />
<link rel="stylesheet" type="text/css" href="css/zoombox.css" />
<link rel="stylesheet" type="text/css" href="css/mdp.css">
<!-- TinyMCE -->
<script type="text/javascript" src="outils/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
// General options
mode : "exact",
elements : "biography",
theme : "advanced",
skin : "o2k7",
skin_variant : "silver",
plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave,visualblocks",
// Theme options
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,forecolor,backcolor,|,search,replace,|,undo,redo,|,sub,sup,charmap,advhr,|,bullist,numlist,|,outdent,indent,|,link,unlink,image,media,|,preview,print,|,fullscreen",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,tablecontrols,|,hr,removeformat,visualaid,|,insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,pagebreak",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "center",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : false,
// Example content CSS (should be your site CSS)
content_css : "css/content.css",
// Drop lists for link/image/media/template dialogs
template_external_list_url : "lists/template_list.js",
external_link_list_url : "lists/link_list.js",
external_image_list_url : "lists/image_list.js",
media_external_list_url : "lists/media_list.js",
// Style formats
style_formats : [
{title : 'Bold text', inline : 'b'},
{title : 'Red text', inline : 'span', styles : {color : '#ff0000'}},
{title : 'Red header', block : 'h1', styles : {color : '#ff0000'}},
{title : 'Example 1', inline : 'span', classes : 'example1'},
{title : 'Example 2', inline : 'span', classes : 'example2'},
{title : 'Table styles'},
{title : 'Table row 1', selector : 'tr', classes : 'tablerow1'}
],
// Replace values for the template plugin
template_replace_values : {
username : "Some User",
staffid : "991234"
}
});
</script>
<!-- /TinyMCE -->
</head>
<body>
<!-- Bouton Fcebook -->
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/fr_FR/all.js#xfbml=1&appId=195303913857626";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<!--End Facebook -->
<!--Boutojn google+1 -->
<!-- Place this tag in your head or just before your close body tag. -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js">
{lang: "fr"}
</script>
<!-- End g+1 -->
<?php include('pages/menu.php'); ?>
<div id="contenu">
<table border="0" width="100%">
<tr><td>
<center><table border="0" WIDTH='90%'>
<td WIDTH='40%'><img src="sources/classic-quest.png" alt="Classic Quest" width="100%" /></td>
<td id='subdroit'>
<span id='subface'><a target="_blank" href="https://www.facebook.com/ClassicQuest"><img src="sources/facebook.png" alt="Notre page Facebook (officiel)" title="Notre page Facebook (officiel)" /></a></span>
<span id='submail'><a target="_blank" href="mailto:haris.seldon@gmail.com"><img src="sources/mail.png" alt="Contactez-nous" title="Contactez-nous" /></a></span>
<span id='subrss'><a target="_blank" href="outils/rss.php"><img src="sources/rss.png" alt="rss" title="rss" /></a></span>
</span>
<br /><br /><br /><br /><h2>Que recherchez vous?</h2>
<form method="POST" action="search">
<input type="text" name="search" />
<input type="submit" name="submit" value="Rechercher" /><br />
<br /><input type="radio" name="table" value="artist" <?php if((isset($_POST['table']) && $_POST['table'] == "artist") || empty($_POST['table'])) echo 'checked="checked"'; ?> />Artistes
<input type="radio" name="table" value="enregistrement" <?php if(isset($_POST['table']) && $_POST['table'] == "enregistrement") echo 'checked="checked"'; ?> />Enregistrements
<input type="radio" name="table" value="evenement" <?php if(isset($_POST['table']) && $_POST['table'] == "evenement") echo 'checked="checked"'; ?> />Évènement<br />
</form>
<br />
</td>
</table></center>
<hr />
</td></tr>
<tr><td> <?php
if(isset($_GET['page'])){
if(file_exists($_GET['page'])){
include($_GET['page']);
}
// on decoupe l'artist de son id
elseif(preg_match("/pages\/artist/",$_GET['page'])){
$id = substr($_GET["page"], 12, -4);
$temp = substr($_GET["page"], 6,-(strlen($id)+4));
}
elseif(preg_match("/pages\/event/",$_GET['page'])){
$id = substr($_GET["page"], 11, -4);
$temp = substr($_GET["page"], 6,-(strlen($id)+4));
}
// on decoupe l'artist de son id
elseif(preg_match("/pages\/mod-artist/",$_GET['page'])){
$id = substr($_GET["page"], 16, -4);
$temp = substr($_GET["page"], 6,-(strlen($id)+4));
}
// on decoupe l'artist de son id
elseif(preg_match("/pages\/suppr-artist/",$_GET['page'])){
$id = substr($_GET["page"], 18, -4);
$temp = substr($_GET["page"], 6,-(strlen($id)+4));
}
// on decoupe l'enregistrement de son id
elseif(preg_match("/pages\/suppr-enreg/",$_GET['page'])){
$id = substr($_GET["page"], 17, -4);
$temp = substr($_GET["page"], 6,-(strlen($id)+4));
}
// on decoupe la page galery de son ident
elseif(preg_match("/pages\/galery-artist/",$_GET['page'])){
$galid= substr($_GET["page"], 19, -4);
if(preg_match("/-Compositeur/",$galid)){
$typeartist = "Compositeur";
$galid = substr($galid, 12);
}
elseif(preg_match("/-Interprete/",$galid)){
$typeartist = "Interprete";
$galid = substr($galid, 11);
}
$temp = substr($_GET["page"], 6,-(strlen($galid)+strlen($typeartist)+5));
}
// on decoupe l'enregistrement de son id
elseif(preg_match("/pages\/enreg/",$_GET['page'])){
$id = substr($_GET["page"], 11, -4);
$temp = substr($_GET["page"], 6,-(strlen($id)+4));
}
// on decoupe l'enregistrement de son id
elseif(preg_match("/pages\/mod-enreg/",$_GET['page'])){
$id = substr($_GET["page"], 15, -4);
$temp = substr($_GET["page"], 6,-(strlen($id)+4));
}
// on decoupe l'evenement de son id
elseif(preg_match("/pages\/mod-event/",$_GET['page'])){
$id = substr($_GET["page"], 15, -4);
$temp = substr($_GET["page"], 6,-(strlen($id)+4));
}
// on decoupe l'evenement de son id
elseif(preg_match("/pages\/suppr-event/",$_GET['page'])){
$id = substr($_GET["page"], 17, -4);
$temp = substr($_GET["page"], 6,-(strlen($id)+4));
}
// on decoupe l'user de son id
elseif(preg_match("/pages\/validation/",$_GET['page'])){
$id = substr($_GET["page"], 16, -4);
if(preg_match("/ok/",$id)){
$ok = "ok";
$id = substr($id, 2);
}
if(preg_match("/non/",$id)){
$non = "non";
$id = substr($id, 3);
}
$temp = "validation";
}
// on decoupe l'enregistrement de son id
elseif(preg_match("/pages\/supprimer-ban/",$_GET['page'])){
$id = substr($_GET["page"], 19, -4);
if(preg_match("/s/",$id)){
$suppr = "suppr";
$id = substr($id, 1);
}
if(preg_match("/b/",$id)){
$ban = "ban";
$id = substr($id, 1);
}
$temp = "supprimer-ban";
}
else include('pages/accueil.php');
// on inclus la page principale de l'application
if(isset($temp))
include('pages/'.$temp.'.php');
}
else{
include('pages/accueil.php');
}
?>
</td></tr></table>
<?php
//bouton jaime
echo '<br /><ul id="social"><li class="element"><div class="g-plusone" data-size="medium"></div></li>';
echo '<li id="fbck" class="element"><div class="fb-like" data-send="false" data-layout="button_count" data-width="115" data-show-faces="false"></div></li>';
echo '<li class="element"><a href="https://twitter.com/share" class="twitter-share-button">Tweet</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></li></ul>';
// end button
?>
</div>
<div id="bas">
Classic Quest - © Copyright 2012
- <a href="https://www.olympe.in/" target="_blank">Hebergeur : Olympe</a>
- <a href="https://www.facebook.com/groups/358656437504076/" target="_blank">OpenGeek</a>
<div id='partenaires'>
<h3>Nos partenaires :</h3>
<a href="http://michelroques.blogspot.fr/" target="_blank">Michel Roques (Blog officiel de l'auteur.)</a>
- <a href="http://www.lulu.com/product/couverture-souple/le-sixième-siège/11060245" target="_blank">Le Sixième siège (Achetez le livre sur lulu.com)</a>
- <a href="http://harisseldon.blogspot.fr/" target="_blank">HariS Seldon</a>
- <a href="http://leopol-dine.blogspot.fr/" target="_blank">Leopol-dine</a>
- <a href="http://aary-fr.blogspot.fr/" target="_blank">AARY</a>
</div>
</div>
<div id="musique"></div><div id="musiquekonami"></div>
</body>
<script type="text/javascript" src="js/jquery-1.7.min.js"></script>
<script type="text/javascript" src="js/jquery.animate-colors-min.js"></script>
<script type="text/javascript" src="js/backpos.js"></script>
<script type="text/javascript" src="js/zoombox.js"></script>
<script type="text/javascript" src="js/jquery.ui.core.js"></script>
<script type="text/javascript" src="js/jquery.ui.datepicker.js"></script>
<script type="text/javascript" src="js/jquery-ui.multidatespicker.js"></script>
<script type="text/javascript" src="js/monjs.js"></script>
</html>