subir
This commit is contained in:
@@ -43,20 +43,21 @@ class LogAsistencias
|
||||
|
||||
function appendLog($claveULSA, $nombre, $desc)
|
||||
{
|
||||
$filename = $this->dir . $this->file;
|
||||
/* $filename = $this->dir . $this->file;
|
||||
if (!file_exists($this->dir)) {
|
||||
mkdir($this->dir, 0755, true);
|
||||
}
|
||||
if (file_exists($this->dir)) {
|
||||
$data = date('Y-m-d H:i:s') . "||" . $this->cleanLog($claveULSA) . "||" . $this->cleanLog($desc) . "||" . $this->cleanLog($nombre) . "\n";
|
||||
/*echo*/
|
||||
file_put_contents($filename, $data, FILE_APPEND);
|
||||
}
|
||||
} */
|
||||
}
|
||||
function getLog($mes = "", $ano = "")
|
||||
{
|
||||
if ($mes != "") $this->setMes($mes);
|
||||
if ($ano != "") $this->setAno($ano);
|
||||
if ($mes != "")
|
||||
$this->setMes($mes);
|
||||
if ($ano != "")
|
||||
$this->setAno($ano);
|
||||
$filename = $this->dir . $this->file;
|
||||
if (file_exists($filename)) {
|
||||
//return array_slice(file ($filename , FILE_SKIP_EMPTY_LINES) , -10);
|
||||
@@ -70,4 +71,4 @@ class LogAsistencias
|
||||
} else
|
||||
return array();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user