diff options
author | Stanislav-Wolski <stanislau.wolski@gmail.com> | 2012-05-28 17:29:54 +0300 |
---|---|---|
committer | Stanislav-Wolski <stanislau.wolski@gmail.com> | 2012-05-28 17:29:54 +0300 |
commit | f412231c95a2d54a1061b597b4032227e5e0bdb5 (patch) | |
tree | 0a4b388edebba591e6fd19dbe1cea2f7978d7294 /samples/security/tree_csrf.php | |
parent | 6c5b0c64092ad095d55412b5765c14bd121b508c (diff) | |
download | connector-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.php | 13 |
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 |