QUrl-theme-YOURLS/QUrl-Theme/qurl/functions.php
Krzysiek Janiczek f4b2cb4298 The first version
The first version of the theme
2024-04-25 18:06:18 +02:00

18 lines
No EOL
566 B
PHP

<?php
// get number of links in the database
require_once( dirname( __DIR__ ).'/includes/load-yourls.php' );
// Variables
$table_url = YOURLS_DB_TABLE_URL;
$where = array('sql' => '', 'binds' => array());
// Get URLs Count for current filter, total links in DB & total clicks
list( $total_urls, $total_clicks ) = array_values( yourls_get_db_stats() );
if ( !empty($where['sql']) ) {
list( $total_items, $total_items_clicks ) = array_values( yourls_get_db_stats( $where ) );
} else {
$total_items = $total_urls;
$total_items_clicks = false;
}
?>