From dae5c2208c936c82b07eea35ce95f0aba03f5413 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 7 Apr 2001 20:00:21 +0000 Subject: - improved rating module: it now shows some basic statistics :-) - updated database files - removed affialiate-site and drupal-site module: maintain them by hand through a box for now will you. --- modules/drupal-site.module | 94 ---------------------------------------------- 1 file changed, 94 deletions(-) delete mode 100644 modules/drupal-site.module (limited to 'modules/drupal-site.module') diff --git a/modules/drupal-site.module b/modules/drupal-site.module deleted file mode 100644 index d4742b681..000000000 --- a/modules/drupal-site.module +++ /dev/null @@ -1,94 +0,0 @@ - "drupal_block", - "admin" => "drupal_admin"); - -function drupal_block() { - global $site_url; - - $result = db_query("SELECT * FROM drupals ORDER BY name"); - - $content .= "\n"; - - $content .= "
\n"; - $content .= "
\n"; - $content .= " \n"; - $content .= "
\n"; - $content .= "
\n"; - - $blocks[0]["subject"] = "Drupal sites"; - $blocks[0]["content"] = $content; - $blocks[0]["info"] = "Drupal sites (selection)"; - - unset($content); - - $result = db_query("SELECT * FROM drupals ORDER BY name"); - while ($drupal = db_fetch_object($result)) { - $content .= "
  • link\">$drupal->name
  • \n"; - } - - $blocks[1]["subject"] = "Drupal sites"; - $blocks[1]["content"] = $content; - $blocks[1]["info"] = "Drupal sites (sequential)"; - - return $blocks; -} - -function drupal_admin_add($name, $url, $contact) { - db_query("INSERT INTO drupals (name, link, contact) VALUES ('". check_input($name) ."', '". check_input($url) ."', '". check_input($contact) ."')"); -} - -function drupal_admin_del($id) { - db_query("DELETE FROM drupals WHERE id = '$id'"); -} - -function drupal_admin_display() { - $result = db_query("SELECT * FROM drupals ORDER BY name"); - - $output .= "
    \n"; - $output .= "\n"; - $output .= " \n"; - - while ($drupal = db_fetch_object($result)) { - $output .= " \n"; - } - - $output .= " \n"; - $output .= "
    namelinkcontactoperations
    $drupal->name". format_url($drupal->link) ."". format_email($drupal->contact) ."id\">delete
    \n"; - $output .= "
    \n"; - - print $output; -} - -function drupal_admin() { - global $op, $id, $name, $url, $contact; - - switch($op) { - case "Add drupal site": - drupal_admin_add($name, $url, $contact); - drupal_admin_display(); - break; - case "delete": - drupal_admin_del($id); - drupal_admin_display(); - break; - default: - drupal_admin_display(); - } -} - -?> \ No newline at end of file -- cgit v1.2.3