28require
'../../main.inc.php';
29require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
30require_once DOL_DOCUMENT_ROOT.
'/core/lib/cron.lib.php';
33$langs->loadLangs(array(
'admin',
'cron'));
39$actionsave =
GETPOST(
"save",
'alphanohtml');
42if (!empty($actionsave)) {
66$linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
72print
'<form name="agendasetupform" action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
73print
'<input type="hidden" name="token" value="'.newToken().
'">';
77print
'<span class="opacitymedium">'.$langs->trans(
'CronInfo').
'</span><br>';
81print
'<table class="noborder centpercent">';
83print
'<tr class="liste_titre">';
84print
"<td>".$langs->trans(
"Parameter").
"</td>";
85print
"<td>".$langs->trans(
"Value").
"</td>";
90print
'<tr class="oddeven">';
91print
'<td class="fieldrequired">'.$langs->trans(
"KeyForCronAccess").
'</td>';
94 $disabled =
' disabled="disabled"';
98 print
'<input type="text" class="flat minwidth300 widthcentpercentminusx"'.$disabled.
' id="CRON_KEY" name="CRON_KEY" value="'.(
GETPOST(
'CRON_KEY') ?
GETPOST(
'CRON_KEY') :
getDolGlobalString(
'CRON_KEY')).
'">';
100 if (!empty($conf->use_javascript_ajax)) {
101 print
' '.img_picto($langs->trans(
'Generate'),
'refresh',
'id="generate_token" class="linkobject"');
104 $langs->load(
"errors");
105 print
' '.img_picto($langs->trans(
"WarningChangingThisMayBreakStopTaskScheduler"),
'info');
109 print
'<input type="hidden" id="CRON_KEY" name="CRON_KEY" value="'.(GETPOST(
'CRON_KEY') ?
GETPOST(
'CRON_KEY') :
getDolGlobalString(
'CRON_KEY')).
'">';
112print
'<td> </td>';
120 print $form->buttonsSaveCancel(
"Save",
'');
140$constname =
'CRON_KEY';
143include_once DOL_DOCUMENT_ROOT.
'/core/lib/security2.lib.php';
dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $note='', $entity=1)
Insert a parameter (key,value) into database (delete old key then insert it again).
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
cronadmin_prepare_head()
Return array of tabs to used on pages to setup cron module.
dol_print_cron_urls()
Show information with URLs to launch jobs.
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0)
Set event messages in dol_events session object.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
info_admin($text, $infoonimgalt=0, $nodiv=0, $admin='1', $morecss='hideonsmartphone', $textfordropdown='', $picto='')
Show information in HTML for admin users or standard users.
dolJSToSetRandomPassword($htmlname, $htmlnameofbutton='generate_token', $generic=1)
Output javascript to autoset a generated password using default module into a HTML element.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.