Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Achim Bohnet
mpidb_common
Commits
c0962614
Commit
c0962614
authored
Feb 15, 2016
by
Gerd Schachtschneider
Browse files
change path in cronjobs
parent
f78a760d
Changes
1
Hide whitespace changes
Inline
Side-by-side
template/cronjobs/cronDatabase.php
View file @
c0962614
...
...
@@ -3,11 +3,12 @@
// Cronjob Skript fuer Aktionen ausserhalb der DB
// z.B. Mailbenachrichtigung, Loeschen verwaister Ablagen etc.
// Beispiele folgend
// schachi 201
5
-0
5-06
// schachi 201
6
-0
2-15
//
das Skript so
ll
t
e
im gleichen Pfad wie die conf.ini liegen, sonst wir der Mail-Link nicht stimmen
//
ste
lle
sicher das dieses Skript in einem Subdir liegt, normalerweise im Ordner cronjobs, sonst gibt es kausale Problem :-(
chdir
(
__DIR__
);
if
(
!
is_readable
(
'conf.ini'
)
)
die
(
'Error loading config file.'
);
chdir
(
'../'
);
if
(
!
is_readable
(
'conf.ini'
)
)
die
(
'Error loading config file from here '
.
getcwd
()
.
"
\n
"
);
$conf
=
array
();
// $conf = array_merge(parse_ini_file('conf.ini', true), $conf);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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