View file install/data/sql.php
<?php $sql='data/mysql.sql'; $query=file_get_contents($sql); $queryes=preg_split("#(SELECT|CREATE|DROP|UPDATE|INSERT|SHOW|REVOKE|MATCH|LIKE|GRANT|DESCRIBE|OPTIMIZE|COUNT|ALTER|AGAINST|)[-a-z0-9_.:@&?=+,!/~*'%$\"\s\n]*;#i", $query); $count=count($queryes)-1; echo '<div class="menu">moTxovna: '.$count.'<br/></div>'; for($i=0;$i<$count;$i++) { mysql_query($queryes[$i]); } echo'<div class="menu"><span style="color:green">MySQL moTxovnebi Sesrulebulia<br/></span></div>'; ?>