Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Corentin Bettiol
l3m-website
Commits
01c3961e
Commit
01c3961e
authored
Mar 06, 2020
by
Corentin Bettiol
💻
Browse files
update config to work with alwaysdata
parent
30442b34
Changes
5
Hide whitespace changes
Inline
Side-by-side
site/controller/adminController.php
View file @
01c3961e
...
...
@@ -114,4 +114,4 @@ function decoAdminPage()
{
$_SESSION
=
array
();
header
(
'Location:/'
);
}
\ No newline at end of file
}
site/controller/mainController.php
View file @
01c3961e
...
...
@@ -221,4 +221,4 @@ function writeTagPage($pageName){
}
else
header
(
"Location:/"
);
}
\ No newline at end of file
}
site/model/Base.php
View file @
01c3961e
...
...
@@ -16,7 +16,7 @@ class Base
{
// verify if a connexion to the db already exist
if
(
!
(
self
::
$db
instanceof
PDO
))
self
::
$db
=
new
PDO
(
'mysql:host=
localhost
;dbname='
.
dbName
.
';charset=utf8mb4'
,
dbUser
,
dbPass
);
self
::
$db
=
new
PDO
(
'mysql:host=
'
.
dbAddr
.
'
;dbname='
.
dbName
.
';charset=utf8mb4'
,
dbUser
,
dbPass
);
}
...
...
@@ -50,4 +50,4 @@ class Base
return
$slug
;
}
}
\ No newline at end of file
}
site/model/config-dist.php
View file @
01c3961e
...
...
@@ -6,6 +6,7 @@
// database config
define
(
'dbAddr'
,
''
);
define
(
'dbName'
,
''
);
define
(
'dbUser'
,
''
);
define
(
'dbPass'
,
''
);
...
...
@@ -20,4 +21,4 @@
// rss config
define
(
'RSSBLOG'
,
''
);
define
(
'RSSPROJECTS'
,
''
);
\ No newline at end of file
define
(
'RSSPROJECTS'
,
''
);
site/view/public/about.php
View file @
01c3961e
...
...
@@ -39,7 +39,9 @@
<article>
<h3>
À propos du serveur
</h3>
<p>
<i>
nb: cette partie n'est plus exacte depuis le 06/03/2020, cf le post
<a
href=
"http://l3m.in/article/il-est-vivant"
>
Il est vivant !
</a></i>
</p>
<p>
Le serveur est en fait un dell optiplex fx160 (acheté 50€ en 2017 sur ebay) sous debian, et actuellement posé à côté de ma box internet.
</p>
...
...
@@ -57,4 +59,4 @@
<p>
C'est un morse. C'est le pixel-art résultant d'un petit dessin gribouillé dans une marge d'une feuille au lycée.
</p>
</article>
\ No newline at end of file
</article>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment