mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Normalize whitespace
This commit is contained in:
parent
18cf4e7c0a
commit
a7f32afb21
4 changed files with 17 additions and 17 deletions
|
|
@ -21,7 +21,7 @@ class counterAdminView extends counter
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Admin page
|
* Admin page
|
||||||
*
|
*
|
||||||
* @return Object
|
* @return Object
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ class counter extends ModuleObject
|
||||||
*/
|
*/
|
||||||
function moduleInstall()
|
function moduleInstall()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -30,7 +30,7 @@ class counter extends ModuleObject
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -55,7 +55,7 @@ class counter extends ModuleObject
|
||||||
*/
|
*/
|
||||||
function recompileCache()
|
function recompileCache()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -70,11 +70,11 @@ class counterController extends counter
|
||||||
{
|
{
|
||||||
$oDB = DB::getInstance();
|
$oDB = DB::getInstance();
|
||||||
$oDB->begin();
|
$oDB->begin();
|
||||||
|
|
||||||
$args = new stdClass();
|
$args = new stdClass();
|
||||||
$args->regdate = [0, $date = date('Ymd')];
|
$args->regdate = [0, $date = date('Ymd')];
|
||||||
executeQuery('counter.updateCounterUnique', $args);
|
executeQuery('counter.updateCounterUnique', $args);
|
||||||
|
|
||||||
$affected_rows = $oDB->getAffectedRows();
|
$affected_rows = $oDB->getAffectedRows();
|
||||||
if ($affected_rows == 1)
|
if ($affected_rows == 1)
|
||||||
{
|
{
|
||||||
|
|
@ -88,9 +88,9 @@ class counterController extends counter
|
||||||
$args->regdate = 0;
|
$args->regdate = 0;
|
||||||
executeQuery('counter.insertTodayStatus', $args);
|
executeQuery('counter.insertTodayStatus', $args);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->insertLog();
|
$this->insertLog();
|
||||||
|
|
||||||
$oDB->commit();
|
$oDB->commit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -119,15 +119,15 @@ class counterController extends counter
|
||||||
*/
|
*/
|
||||||
public function insertTotalStatus()
|
public function insertTotalStatus()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
public function deleteSiteCounterLogs()
|
public function deleteSiteCounterLogs()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* End of file counter.controller.php */
|
/* End of file counter.controller.php */
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ class counterModel extends counter
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$args = new stdClass();
|
$args = new stdClass();
|
||||||
$args->regdate = $date;
|
$args->regdate = $date;
|
||||||
$args->ipaddress = \RX_CLIENT_IP;
|
$args->ipaddress = \RX_CLIENT_IP;
|
||||||
|
|
@ -39,24 +39,24 @@ class counterModel extends counter
|
||||||
{
|
{
|
||||||
$_SESSION['counter_logged'][$date] = true;
|
$_SESSION['counter_logged'][$date] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $iplogged;
|
return $iplogged;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a row of today's counter status exists
|
* Check if a row of today's counter status exists
|
||||||
*
|
*
|
||||||
* @deprecated
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
public static function isInsertedTodayStatus()
|
public static function isInsertedTodayStatus()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get access statistics for a given date
|
* Get access statistics for a given date
|
||||||
*
|
*
|
||||||
* @param mixed $selected_date Date(YYYYMMDD) list
|
* @param mixed $selected_date Date(YYYYMMDD) list
|
||||||
* @return Object
|
* @return Object
|
||||||
*/
|
*/
|
||||||
public static function getStatus($selected_date)
|
public static function getStatus($selected_date)
|
||||||
|
|
@ -212,7 +212,7 @@ class counterModel extends counter
|
||||||
|
|
||||||
$status->max = $max;
|
$status->max = $max;
|
||||||
$status->sum = $sum;
|
$status->sum = $sum;
|
||||||
|
|
||||||
return $status;
|
return $status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue