Commit c53d17f2 authored by PkSM3's avatar PkSM3

tinawebjs & geomap linked to 30min-update-DB

parent 636e591f
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* Customize as you want ;) * Customize as you want ;)
*/ */
function callGeomap(){ function callGeomap(){
db=JSON.stringify('php/community.db'); db=JSON.stringify('community.db');
if(is_empty(selections)){ if(is_empty(selections)){
// jsonparams='["all"]'; // jsonparams='["all"]';
jsonparams='["unique_id"]&unique_id='+getUrlParam.nodeidparam; jsonparams='["unique_id"]&unique_id='+getUrlParam.nodeidparam;
......
...@@ -10,6 +10,7 @@ foreach($db as $d){ ...@@ -10,6 +10,7 @@ foreach($db as $d){
break; break;
} }
} }
if($mainpath=="//") $mainpath="";
//$dbname=$db[0];//getDB($mainpath);//'homework-20750-1-homework-db.db';; //$dbname=$db[0];//getDB($mainpath);//'homework-20750-1-homework-db.db';;
$base = new PDO("sqlite:" .$mainpath.$db); $base = new PDO("sqlite:" .$mainpath.$db);
$max_item_displayed=6; $max_item_displayed=6;
......
File mode changed from 100755 to 100644
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment