summaryrefslogtreecommitdiffstats
path: root/samples/security/tree_csrf.php
diff options
context:
space:
mode:
authorStanislau Wolski <stanislau.wolski@gmail.com>2014-11-03 20:13:33 +0300
committerStanislau Wolski <stanislau.wolski@gmail.com>2014-11-03 20:13:33 +0300
commitb4f88ab0656d98e41d446f6f3fa7ff5ee941a48d (patch)
treeb747c23c354d7e18ab21d72698d2124d778e2b3a /samples/security/tree_csrf.php
parentc1a155bd754eb89137a45056e2ef9b1d13b2501c (diff)
parentaafef026fb6b024ae25ebc79680840049ca718a5 (diff)
downloadconnector-php-b4f88ab0656d98e41d446f6f3fa7ff5ee941a48d.zip
connector-php-b4f88ab0656d98e41d446f6f3fa7ff5ee941a48d.tar.gz
connector-php-b4f88ab0656d98e41d446f6f3fa7ff5ee941a48d.tar.bz2
Merge branch 'pdo'
Diffstat (limited to 'samples/security/tree_csrf.php')
-rw-r--r--samples/security/tree_csrf.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/samples/security/tree_csrf.php b/samples/security/tree_csrf.php
index eca30e9..013aaba 100644
--- a/samples/security/tree_csrf.php
+++ b/samples/security/tree_csrf.php
@@ -1,13 +1,13 @@
<?php
require_once("../config.php");
-
- $res=mysql_connect($mysql_server,$mysql_user,$mysql_pass);
- mysql_select_db($mysql_db);
+ require_once('../../codebase/db_pdo.php');
+ $res= new PDO($mysql_server,$mysql_user,$mysql_pass);
+
require("../../codebase/tree_connector.php");
ConnectorSecurity::$security_key = true;
- $grid = new TreeConnector($res);
+ $grid = new TreeConnector($res, "PDO");
$grid->render_table("tasks","taskId","taskName","","parentId");
?> \ No newline at end of file