-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathfunctions.php
36 lines (31 loc) · 1023 Bytes
/
functions.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
<?php
function toStatic($buffer){
$a = array(
'á','é','í','ó','ú','ñ',
'Á','É','Í','Ó','Ú','Ñ'
);
$b = array(
'á','é','í','ó','ú','ñ',
'Á','É','Í','Ó','Ú','Ñ'
);
$buffer = str_replace($a, $b, $buffer);
file_put_contents('index.html', $buffer);
return $buffer;
}
function printMenu($wiki, $pagOficial=''){
if(!empty($pagOficial)){
$pagOficial = '<a class=btn btn_docs target=_blank href=' . $pagOficial . '>Pagina oficial</a>';
}
echo
'<p>
<a class=btn btn_video_es href=#>Vídeos en Español</a>
<!-- <a class=btn btn_video_en href=#>Videos en Ingles</a> -->
</p>
<p class=text_links>
<a class=btn href=http://es.wikipedia.org/wiki/'.$wiki .'target=_blank>Wikipedia</a>
<a class=btn btn_doc href=#>Documentos</a>' . $pagOficial .'</p>';
}
function printList($file){
$source = readfile('source/' . $file . .html);
}
?>