Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
l3m-website
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Corentin Bettiol
l3m-website
Commits
01c3961e
Commit
01c3961e
authored
Mar 06, 2020
by
Corentin Bettiol
💻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update config to work with alwaysdata
parent
30442b34
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
7 deletions
+10
-7
site/controller/adminController.php
site/controller/adminController.php
+1
-1
site/controller/mainController.php
site/controller/mainController.php
+1
-1
site/model/Base.php
site/model/Base.php
+2
-2
site/model/config-dist.php
site/model/config-dist.php
+2
-1
site/view/public/about.php
site/view/public/about.php
+4
-2
No files found.
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
Markdown
is supported
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