33 global $langs, $conf, $user;
37 $head[$h][0] = DOL_URL_ROOT.
'/cron/admin/cron.php';
38 $head[$h][1] = $langs->trans(
"Miscellaneous");
39 $head[$h][2] =
'setup';
42 $head[$h][0] = DOL_URL_ROOT.
'/cron/list.php?mode=modulesetup';
43 $head[$h][1] = $langs->trans(
"Module2300Name");
44 $head[$h][2] =
'jobs';
63 global $langs, $conf, $user;
67 $head[$h][0] = DOL_URL_ROOT.
'/cron/card.php?id='.$object->id;
68 $head[$h][1] = $langs->trans(
"CronTask");
69 $head[$h][2] =
'card';
72 $head[$h][0] = DOL_URL_ROOT.
'/cron/info.php?id='.$object->id;
73 $head[$h][1] = $langs->trans(
"Info");
74 $head[$h][2] =
'info';
91 global $conf, $langs, $user;
92 global $dolibarr_main_url_root;
95 $urlwithouturlroot = preg_replace(
'/'.preg_quote(DOL_URL_ROOT,
'/').
'$/i',
'', trim($dolibarr_main_url_root));
96 $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
100 print
'<div class="div-table-responsive-no-min">';
101 print $langs->trans(
"URLToLaunchCronJobs").
':<br>';
102 $url = $urlwithroot.
'/public/cron/cron_run_jobs_by_url.php?'.(empty($conf->global->CRON_KEY) ?
'' :
'securitykey='.$conf->global->CRON_KEY.
'&').
'userlogin='.$user->login;
103 print
'<div class="urllink">';
104 print
'<input type="text" id="publicurlmember" class="quatrevingtpercentminusx" value="'.$url.
'">';
105 print
' <a href="'.$url.
'" target="_blank" rel="noopener noreferrer">'.
img_picto(
'',
'globe').
"</a>\n";
107 print
'<br> '.$langs->trans(
"OrToLaunchASpecificJob").
'<br>';
108 $url = $urlwithroot.
'/public/cron/cron_run_jobs_by_url.php?'.(empty($conf->global->CRON_KEY) ?
'' :
'securitykey='.$conf->global->CRON_KEY.
'&').
'userlogin='.$user->login.
'&id=cronjobid';
109 print
'<div class="urllink">';
110 print
'<input type="text" id="publicurlmemberall" class="quatrevingtpercentminusx" value="'.$url.
'">';
111 print
' <a href="'.$url.
'" target="_blank" rel="noopener noreferrer">'.
img_picto(
'',
'globe').
"</a>\n";
119 $logintouse =
'firstadmin';
121 $logintouse = $user->login;
124 print
'<u>'.$langs->trans(
"FileToLaunchCronJobs").
':</u><br>';
126 $pathtoscript =
'/pathtoscript';
127 if (!empty($conf->global->MAIN_DOL_SCRIPTS_ROOT)) {
128 $pathtoscript = $conf->global->MAIN_DOL_SCRIPTS_ROOT;
131 $file = $pathtoscript.
'/scripts/cron/cron_run_jobs.php '.(empty($conf->global->CRON_KEY) ?
'securitykey' :
''.$conf->global->CRON_KEY).
' '.$logintouse.
' [cronjobid]';
132 print
'<textarea class="quatrevingtpercent">'.$file.
"</textarea><br>\n";
136 if (empty($conf->global->CRON_DISABLE_TUTORIAL_CRON)) {
138 if (preg_match(
'/^win/i', PHP_OS)) {
141 if (preg_match(
'/^mac/i', PHP_OS)) {
144 print $langs->trans(
"Note").
': ';
146 print $langs->trans(
"CronExplainHowToRunUnix");
148 print
'<textarea class="quatrevingtpercent">*/5 * * * * '.$pathtoscript.
'/scripts/cron/cron_run_jobs.php '.(empty($conf->global->CRON_KEY) ?
'securitykey' :
''.$conf->global->CRON_KEY).
' '.$logintouse.
' > '.DOL_DATA_ROOT.
'/cron_run_jobs.php.log</textarea><br>';
150 print $langs->trans(
"CronExplainHowToRunWin");
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode='add', $filterorigmodule='')
Complete or removed entries into a head array (used to build tabs).