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
|
<?php
require_once('smarty/libs/Smarty.class.php');
$titulo="Sitio personal de Jesús";
$nombre="Jesús";
$profesion="Desarrollador";
$description="Este es el sitio web personal de Jesús, un desarrollador, colaborador y hacker de proyectos con software Libre en reemplazo a las tecnologías privativas.";
$enviado = "";
/* ---- ---- Generated URL ---- ---- */
if ( isset( $_SERVER["HTTPS"] ) && $_SERVER["HTTPS"] == "on" ) {
$pro = 'https';
} else {
$pro = 'http';
}
$extract_url = $pro."://".$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'];
// URL
$siteurl = preg_replace( '/index.php/', '', $extract_url );
/* ---- ---- Correo ---- ---- */
require_once('mail/mail.php');
/* ---- ---- Menu ---- ---- */
$html=new Smarty;
$html->assign("siteurl", $siteurl);
$html->assign("titulo", $titulo);
$html->assign("nombre", $nombre);
/* ---- ---- Fecha ---- ---- */
$html->assign('yesterday', strtotime("now"));
/* ---- ---- Description and Author ---- ---- */
$html->assign("description", $description);
/* ---- ---- EMAIL ---- ---- */
$html->assign("enviado", $enviado);
/* ---- ---- CSS ---- ---- */
$html->assign('templates', array('estilos' => 'templates/css/estilos.min.css',
'normalize' => 'templates/css/normalize.css',
'favicon' => 'templates/images/favicon.png')
);
/* ---- ---- LibreJS ---- ---- */
$html->assign('librejs', array('librejs' => 'templates/librejs.html',
'formulario' => 'templates/js/formulario.min.js')
);
/* ---- ---- Projects and redes Sociales Libres ---- ---- */
$html->assign('projects',
array('cl' => 'https://conocimientoslibres.tuxfamily.org',
'hyperbola' => 'https://www.hyperbola.info',
'librevideojs' => 'https://notabug.org/heckyel/librevideojs')
);
$html->assign('sociales',
array('diaspora' => 'https://diasp.org/u/heckyel',
'gnusocial' => 'https://quitter.cl/heckyel',
'libregit' => 'https://libregit.org/heckyel',
'mediagoblin' => 'https://goblinrefuge.com/mediagoblin/u/cybersy/')
);
$html->display('index.tpl');
|