summaryrefslogtreecommitdiffstats
path: root/samples/security/tree_csrf.php
diff options
context:
space:
mode:
authorStanislav-Wolski <stanislau.wolski@gmail.com>2012-05-28 17:29:54 +0300
committerStanislav-Wolski <stanislau.wolski@gmail.com>2012-05-28 17:29:54 +0300
commitf412231c95a2d54a1061b597b4032227e5e0bdb5 (patch)
tree0a4b388edebba591e6fd19dbe1cea2f7978d7294 /samples/security/tree_csrf.php
parent6c5b0c64092ad095d55412b5765c14bd121b508c (diff)
downloadconnector-php-f412231c95a2d54a1061b597b4032227e5e0bdb5.zip
connector-php-f412231c95a2d54a1061b597b4032227e5e0bdb5.tar.gz
connector-php-f412231c95a2d54a1061b597b4032227e5e0bdb5.tar.bz2
[add] csrf defense and render_array functionality
Diffstat (limited to 'samples/security/tree_csrf.php')
-rw-r--r--samples/security/tree_csrf.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/samples/security/tree_csrf.php b/samples/security/tree_csrf.php
new file mode 100644
index 0000000..eca30e9
--- /dev/null
+++ b/samples/security/tree_csrf.php
@@ -0,0 +1,13 @@
+<?php
+ require_once("../config.php");
+
+ $res=mysql_connect($mysql_server,$mysql_user,$mysql_pass);
+ mysql_select_db($mysql_db);
+
+ require("../../codebase/tree_connector.php");
+
+ ConnectorSecurity::$security_key = true;
+
+ $grid = new TreeConnector($res);
+ $grid->render_table("tasks","taskId","taskName","","parentId");
+?> \ No newline at end of file