Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Document variables

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1278 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
commit b69ae2f500c28bfbe411bb3c0c9d9f2b69b70adb 1 parent 16592e4
jakubvrana authored
5 adminer/include/adminer.inc.php
... ... @@ -1,7 +1,12 @@
1 1 <?php
2 2 class Adminer {
  3 + /** @var array functions used in select */
3 4 var $functions = array("char_length", "from_unixtime", "hex", "lower", "round", "sec_to_time", "time_to_sec", "unix_timestamp", "upper");
  5 +
  6 + /** @var array grouping functions used in select */
4 7 var $grouping = array("avg", "count", "count distinct", "group_concat", "max", "min", "sum");
  8 +
  9 + /** @var array operators used in select */
5 10 var $operators = array("=", "<", ">", "<=", ">=", "!=", "LIKE", "REGEXP", "IN", "IS NULL", "NOT LIKE", "NOT REGEXP", "NOT IN", "IS NOT NULL");
6 11
7 12 /** Name in title and navigation
7 adminer/include/bootstrap.inc.php
@@ -76,7 +76,6 @@
76 76
77 77 define("DB", $_GET["db"]); // for the sake of speed and size
78 78 define("ME", preg_replace('~^[^?]*/([^?]*).*~', '\\1', $_SERVER["REQUEST_URI"]) . '?' . (SID ? SID . '&' : '') . (strlen($_GET["server"]) ? 'server=' . urlencode($_GET["server"]) . '&' : '') . (strlen(DB) ? 'db=' . urlencode(DB) . '&' : ''));
79   -$on_actions = array("RESTRICT", "CASCADE", "SET NULL", "NO ACTION"); // used in foreign_keys()
80 79
81 80 include "../adminer/include/version.inc.php";
82 81 include "../adminer/include/functions.inc.php";
@@ -96,8 +95,10 @@
96 95 session_write_close(); // improves concurrency if a user opens several pages at once, may be restarted later
97 96 }
98 97
99   -$confirm = " onclick=\"return confirm('" . lang('Are you sure?') . "');\"";
100   -$token = $_SESSION["tokens"][$_GET["server"]];
  98 +$on_actions = array("RESTRICT", "CASCADE", "SET NULL", "NO ACTION"); ///< @var array used in foreign_keys()
  99 +$confirm = " onclick=\"return confirm('" . lang('Are you sure?') . "');\""; ///< @var string
  100 +$token = $_SESSION["tokens"][$_GET["server"]]; ///< @var string CSRF protection
  101 +/** @var string */
101 102 $error = ($_POST
102 103 ? ($_POST["token"] == $token ? "" : lang('Invalid CSRF token. Send the form again.'))
103 104 : ($_SERVER["REQUEST_METHOD"] != "POST" ? "" : lang('Too big POST data. Reduce the data or increase the %s configuration directive.', '"post_max_size"')) // posted form with no data means that post_max_size exceeded because Adminer always sends token at least

0 comments on commit b69ae2f

Please sign in to comment.
Something went wrong with that request. Please try again.