ajax.php
changeset 0 11a7dcc4af7a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ajax.php	Fri Sep 12 07:01:55 2014 +0200
@@ -0,0 +1,26 @@
+<?php
+global $auth;
+
+require_once 'action.php';
+$plugin = new action_plugin_datapopup;
+$fields = explode(',',$plugin->getConf('fields'));
+$fields = array_map('trim',$fields);
+$fields = array_filter($fields);
+
+echo '<ul>';
+foreach($fields as $name){
+    $val = $plugin->getFields($_POST['link'], $name);
+    if($val != "")
+    {
+        echo '<li class="dataov_name">';
+        echo '<div class="li">';
+        echo hsc($name);
+        echo '</div></li>';
+        echo '<li class="dataov_'.hsc($name).'">';
+        echo '<div class="li">';
+        echo hsc($val);
+        echo '</div></li>';
+    }
+}
+echo '</ul>';
+