SQL Inventory

List of all SQL mentioned in the code..

ValueCountFile:Line
"SELECT `referrer`, COUNT(*) AS `count` FROM `$table` WHERE `shorturl` $keyword_range GROUP BY `referrer`;"
1
  • /yourls-infos.php
'Select a date'
1
  • /includes/functions-html.php
"SELECT `keyword`,`url` FROM `$table` WHERE 1=1 ORDER BY `url` ASC LIMIT $from$chunk ;"
1
  • /includes/functions-upgrade.php
"UPDATE `$table` SET `keyword` = '$newkeyword' WHERE `url` = '$url';"
1
  • /includes/functions-upgrade.php
'Show %s rows'
1
  • /includes/functions-html.php
'Show links with'
1
  • /includes/functions-html.php
'Show links with %1$s than %2$s clicks'
1
  • /includes/functions-html.php
'Show links created'
1
  • /includes/functions-html.php
'Select an end date'
1
  • /includes/functions-html.php
"SHOW COLUMNS FROM `$table_log`"
1
  • /includes/functions-upgrade.php
'Show links created %1$s %2$s %3$s %4$s'
1
  • /includes/functions-html.php
"SELECT option_name, option_value FROM $table WHERE 1=1"
1
  • /includes/Database/Options.php
"SHOW TABLES LIKE '%s'"
1
  • /includes/Database/Options.php
"SELECT option_value FROM $table WHERE option_name = :option_name LIMIT 1"
1
  • /includes/Database/Options.php
"UPDATE $table SET option_value = :value WHERE option_name = :name"
1
  • /includes/Database/Options.php
"INSERT INTO $table (option_name, option_value) VALUES (:name, :value)"
1
  • /includes/Database/Options.php
"DELETE FROM $table WHERE option_name = :name"
1
  • /includes/Database/Options.php
"SELECT `next_id` FROM `$table`"
1
  • /includes/functions-upgrade.php
"SELECT `keyword` FROM `$table` WHERE `url` = :url"
1
  • /includes/functions-shorturls.php
"SELECT `country_code`, COUNT(*) AS `count` FROM `$table` WHERE `shorturl` $keyword_range GROUP BY `country_code`;"
1
  • /yourls-infos.php
"SHOW TABLES LIKE '$table_name'"
1
  • /includes/functions-install.php
"UPDATE `$table` SET `clicks` = :clicks WHERE `keyword` = :keyword"
1
  • /includes/functions.php
"UPDATE `$table` SET `clicks` = clicks + 1 WHERE `keyword` = :keyword"
1
  • /includes/functions.php
"SELECT * FROM `$table_url` WHERE 1=1 ORDER BY $sort_by $sort_order LIMIT $start$limit;"
1
  • /includes/functions.php
"SELECT COUNT(keyword) as count, SUM(clicks) as sum FROM `$table_url` WHERE 1=1 " $where['sql']
1
  • /includes/functions.php
"INSERT INTO `$table` (click_time, shorturl, referrer, user_agent, ip_address, country_code) VALUES (:now, :keyword, :referrer, :ua, :ip, :location)"
1
  • /includes/functions.php
"SELECT `timestamp` FROM $table WHERE `ip` = :ip ORDER BY `timestamp` DESC LIMIT 1"
1
  • /includes/functions.php
"DELETE FROM `$table` WHERE `keyword` = :keyword"
1
  • /includes/functions-shorturls.php
"SELECT * FROM `$table_url` WHERE `keyword` = :keyword"
1
  • /includes/functions-shorturls.php
"INSERT INTO `$table` (`keyword`, `url`, `title`, `timestamp`, `ip`, `clicks`) VALUES(:keyword, :url, :title, :timestamp, :ip, 0);"
1
  • /includes/functions-shorturls.php
"SELECT * FROM `$table` WHERE `url` = :url"
1
  • /includes/functions-shorturls.php
"SELECT `url` FROM `$table` WHERE `keyword` = :keyword"
1
  • /includes/functions-shorturls.php
"SELECT COUNT(keyword) FROM `$table` WHERE `url` = :url;"
1
  • /includes/functions-shorturls.php
"UPDATE `$table` SET `url` = :url, `keyword` = :newkeyword, `title` = :title WHERE `keyword` = :keyword"
1
  • /includes/functions-shorturls.php
"UPDATE `$table` SET `title` = :title WHERE `keyword` = :keyword;"
1
  • /includes/functions-shorturls.php
"SELECT * FROM `$table` WHERE `keyword` = :keyword"
1
  • /includes/functions-shorturls.php
"SELECT * FROM `$table_url` WHERE 1=1 ${where['sql']} ORDER BY `$sort_by$sort_order LIMIT $offset$perpage;"
1
  • /admin/index.php