Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.119
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html_old /
btm2000_old /
htdocs /
core /
boxes /
Delete
Unzip
Name
Size
Permission
Date
Action
box_accountancy_last_manual_entries.php
4.93
KB
-rw-r--r--
2021-10-16 13:26
box_accountancy_suspense_account.php
4.03
KB
-rw-r--r--
2021-10-16 13:26
box_actions.php
8.82
KB
-rw-r--r--
2021-10-16 13:26
box_activity.php
16.04
KB
-rw-r--r--
2021-10-16 13:26
box_birthdays.php
4.71
KB
-rw-r--r--
2021-10-16 13:26
box_birthdays_members.php
4.7
KB
-rw-r--r--
2021-10-16 13:26
box_boms.php
5.23
KB
-rw-r--r--
2021-10-16 13:26
box_bookmarks.php
4.4
KB
-rw-r--r--
2021-10-16 13:26
box_clients.php
5.31
KB
-rw-r--r--
2021-10-16 13:26
box_commandes.php
6.79
KB
-rw-r--r--
2021-10-16 13:26
box_comptes.php
5.82
KB
-rw-r--r--
2021-10-16 13:26
box_contacts.php
6.97
KB
-rw-r--r--
2021-10-16 13:26
box_contracts.php
6.2
KB
-rw-r--r--
2021-10-16 13:26
box_customers_outstanding_bill_reached.php
5.96
KB
-rw-r--r--
2021-10-16 13:26
box_external_rss.php
6.75
KB
-rw-r--r--
2021-10-16 13:26
box_factures.php
7.34
KB
-rw-r--r--
2021-10-16 13:26
box_factures_fourn.php
7.49
KB
-rw-r--r--
2021-10-16 13:26
box_factures_fourn_imp.php
7.14
KB
-rw-r--r--
2021-10-16 13:26
box_factures_imp.php
7.74
KB
-rw-r--r--
2021-10-16 13:26
box_ficheinter.php
5.57
KB
-rw-r--r--
2021-10-16 13:26
box_fournisseurs.php
5.25
KB
-rw-r--r--
2021-10-16 13:26
box_funnel_of_prospection.php
9.69
KB
-rw-r--r--
2021-10-16 13:26
box_goodcustomers.php
5.52
KB
-rw-r--r--
2021-10-16 13:26
box_graph_invoices_permonth.php
10.24
KB
-rw-r--r--
2021-10-16 13:26
box_graph_invoices_supplier_permonth.php
10.25
KB
-rw-r--r--
2021-10-16 13:26
box_graph_orders_permonth.php
10.2
KB
-rw-r--r--
2021-10-16 13:26
box_graph_orders_supplier_permonth.php
10.25
KB
-rw-r--r--
2021-10-16 13:26
box_graph_product_distribution.php
14.38
KB
-rw-r--r--
2021-10-16 13:26
box_graph_propales_permonth.php
10.28
KB
-rw-r--r--
2021-10-16 13:26
box_last_modified_ticket.php
6.35
KB
-rw-r--r--
2021-10-16 13:26
box_last_ticket.php
6.4
KB
-rw-r--r--
2021-10-16 13:26
box_lastlogin.php
3.14
KB
-rw-r--r--
2021-10-16 13:26
box_members.php
5.94
KB
-rw-r--r--
2021-10-16 13:26
box_mos.php
5.16
KB
-rw-r--r--
2021-10-16 13:26
box_produits.php
8.41
KB
-rw-r--r--
2021-10-16 13:26
box_produits_alerte_stock.php
9.4
KB
-rw-r--r--
2021-10-16 13:26
box_project.php
6.67
KB
-rw-r--r--
2021-10-16 13:26
box_propales.php
6.63
KB
-rw-r--r--
2021-10-16 13:26
box_prospect.php
5.56
KB
-rw-r--r--
2021-10-16 13:26
box_scheduled_jobs.php
6.11
KB
-rw-r--r--
2021-10-16 13:26
box_services_contracts.php
8.59
KB
-rw-r--r--
2021-10-16 13:26
box_services_expired.php
6.19
KB
-rw-r--r--
2021-10-16 13:26
box_shipments.php
6.35
KB
-rw-r--r--
2021-10-16 13:26
box_supplier_orders.php
6.36
KB
-rw-r--r--
2021-10-16 13:26
box_supplier_orders_awaiting_reception.php
6.76
KB
-rw-r--r--
2021-10-16 13:26
box_task.php
8.27
KB
-rw-r--r--
2021-10-16 13:26
box_validated_projects.php
6.76
KB
-rw-r--r--
2021-10-16 13:26
index.html
0
B
-rw-r--r--
2021-10-16 13:26
modules_boxes.php
14.52
KB
-rw-r--r--
2021-10-16 13:26
Save
Rename
<?php /* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> * Copyright (C) 2005-2017 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2005-2011 Regis Houssin <regis.houssin@inodbox.com> * Copyright (C) 2017 Nicolas Zabouri <info@inovea-conseil.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ /** * \file htdocs/core/boxes/box_scheduled_jobs.php * \ingroup task * \brief Widget of scheduled jobs */ include_once DOL_DOCUMENT_ROOT . '/core/boxes/modules_boxes.php'; /** * Class to manage the box to show last contracted products/services lines */ class box_scheduled_jobs extends ModeleBoxes { public $boxcode = "scheduledjobs"; public $boximg = "object_cron"; public $boxlabel = "BoxScheduledJobs"; public $depends = array("cron"); /** * @var DoliDB Database handler. */ public $db; public $param; public $info_box_head = array(); public $info_box_contents = array(); /** * Constructor * * @param DoliDB $db Database handler * @param string $param More parameters */ public function __construct($db, $param) { global $user; $this->db = $db; $this->hidden = !($user->rights->service->lire && $user->rights->contrat->lire); } /** * Load data into info_box_contents array to show array later. * * @param int $max Maximum number of records to load * @return void */ public function loadBox($max = 5) { global $user, $langs, $conf, $form; $langs->load("cron"); $this->info_box_head = array('text' => $langs->trans("BoxScheduledJobs", $max)); if ($user->rights->cron->read) { include_once DOL_DOCUMENT_ROOT . '/cron/class/cronjob.class.php'; $cronstatic = new Cronjob($this->db); $resultarray = array(); $result = 0; $sql = "SELECT t.rowid, t.datelastrun, t.datenextrun,"; $sql .= " t.label, t.status, t.test, t.lastresult"; $sql .= " FROM " . MAIN_DB_PREFIX . "cronjob as t"; $sql .= " WHERE status <> ".$cronstatic::STATUS_DISABLED; $sql .= " AND entity IN (0, ".$conf->entity.")"; $sql .= $this->db->order("t.datelastrun", "DESC"); $result = $this->db->query($sql); $line = 0; $nbjobsinerror = 0; if ($result) { $num = $this->db->num_rows($result); $i = 0; while ($i < $num) { $objp = $this->db->fetch_object($result); if (dol_eval($objp->test, 1, 1)) { $nextrun = $this->db->jdate($objp->datenextrun); if (empty($nextrun)) $nextrun = $this->db->jdate($objp->datestart); if ($line == 0 || ($nextrun < $cronstatic->datenextrun && (empty($objp->nbrun) || empty($objp->maxrun) || $objp->nbrun < $objp->maxrun))) { $cronstatic->id = $objp->rowid; $cronstatic->ref = $objp->rowid; $cronstatic->label = $langs->trans($objp->label); $cronstatic->status = $objp->status; $cronstatic->datenextrun = $this->db->jdate($objp->datenextrun); $cronstatic->datelastrun = $this->db->jdate($objp->datelastrun); } if ($line == 0) { $resultarray[$line] = array( $langs->trans("LastExecutedScheduledJob"), $cronstatic->getNomUrl(1), $cronstatic->datelastrun, $cronstatic->status, $cronstatic->getLibStatut(3) ); $line++; } if (!empty($objp->lastresult)) { $nbjobsinerror++; } } $i++; } if ($line) { $resultarray[$line] = array( $langs->trans("NextScheduledJobExecute"), $cronstatic->getNomUrl(1), $cronstatic->datenextrun, $cronstatic->status, $cronstatic->getLibStatut(3) ); } foreach ($resultarray as $line => $value) { $this->info_box_contents[$line][] = array( 'td' => 'class="tdoverflowmax200"', 'text' => $resultarray[$line][0] ); $this->info_box_contents[$line][] = array( 'td' => 'class="nowraponall"', 'textnoformat' => $resultarray[$line][1] ); $this->info_box_contents[$line][] = array( 'td' => 'class="right"', 'textnoformat' => (empty($resultarray[$line][2]) ? '' : $form->textwithpicto(dol_print_date($resultarray[$line][2], "dayhoursec"), $langs->trans("CurrentTimeZone"))) ); $this->info_box_contents[$line][] = array( 'td' => 'class="center" ', 'textnoformat' => $resultarray[$line][4] ); $line++; } $this->info_box_contents[$line][] = array( 'td' => 'class="tdoverflowmax300" colspan="3"', 'text' => $langs->trans("NumberScheduledJobError") ); $this->info_box_contents[$line][] = array( 'td' => 'class="center"', 'textnoformat' => ($nbjobsinerror ? '<a href="'.DOL_URL_ROOT.'/cron/list.php?search_lastresult='.urlencode('<>0').'"><div class="badge badge-danger"><i class="fa fa-exclamation-triangle"></i> '.$nbjobsinerror.'</div></a>' : '<div class="center badge-status4">0</div>') ); } else { $this->info_box_contents[0][0] = array( 'td' => '', 'maxlength' => 500, 'text' => ($this->db->lasterror() . ' sql=' . $sql) ); } } else { $this->info_box_contents[0][0] = array( 'td' => 'class="nohover opacitymedium left"', 'text' => $langs->trans("ReadPermissionNotAllowed") ); } } /** * Method to show box * * @param array $head Array with properties of box title * @param array $contents Array with properties of box lines * @param int $nooutput No print, only return string * @return string */ public function showBox($head = null, $contents = null, $nooutput = 0) { return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput); } }