summaryrefslogtreecommitdiffstats
path: root/satellit_installer/static_files
diff options
context:
space:
mode:
authorSimon Rettberg2016-07-04 11:02:33 +0200
committerSimon Rettberg2016-07-04 11:02:33 +0200
commit3a16e82288e1587904897ab06d9a281944ce804b (patch)
treec5a118bc8678ce4c6a5f73cb9e798fa0bb5889a2 /satellit_installer/static_files
parent[SSPS] Fix leetle bug: Unary operator fixed, file check /etc/inetd.conf (diff)
downloadsetup-scripts-3a16e82288e1587904897ab06d9a281944ce804b.tar.gz
setup-scripts-3a16e82288e1587904897ab06d9a281944ce804b.tar.xz
setup-scripts-3a16e82288e1587904897ab06d9a281944ce804b.zip
[SSPS] Remove old vmchooser list
Diffstat (limited to 'satellit_installer/static_files')
-rw-r--r--satellit_installer/static_files/vmchooser_list.php63
1 files changed, 0 insertions, 63 deletions
diff --git a/satellit_installer/static_files/vmchooser_list.php b/satellit_installer/static_files/vmchooser_list.php
deleted file mode 100644
index b90ddb6..0000000
--- a/satellit_installer/static_files/vmchooser_list.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-
-
-$db = new mysqli('localhost', 'sat', '%MYSQL_SAT_PASS%', 'sat');
-if ($db->connect_errno) {
- printf("Connect failed: %s\n", $mysqli->connect_error);
- exit();
-}
-
-Header('Content-Type: text/xml; charset=utf-8');
-echo '<?xml version="1.0" encoding="utf-8"?'.'>', "\n";
-echo "<settings>\n";
-
-$res = $db->query("SELECT lecture.name AS title, lecture.shortDescription, lecture.description, Concat(user.Vorname, ' ', user.Nachname) AS creator, user.mail AS email, image.image_path AS path, os.guestOS AS guestos FROM m_VLData_lecture lecture INNER JOIN m_VLData_imageInfo image ON (image.GUID_imageID = lecture.imageID) INNER JOIN m_operatingSystem os ON (os.operatingSystemID = image.content_operatingSystem) INNER JOIN m_user user ON (user.userID = lecture.admin_owner) WHERE lecture.isActive != 0 AND lecture.startTime < NOW() AND lecture.endTime > NOW() ORDER BY lecture.name");
-if ($res === false) {
- die($db->error);
-}
-
-while ($row = $res->fetch_assoc()) {
- unset($item);
- foreach ($row as &$item) $item = htmlspecialchars($item);
- unset($item);
- if (empty($row['description'])) $row['description'] = $row['shortDescription'];
-echo <<<HIERDOCK
-<eintrag>
- <priority param="0"> </priority>
-
-
- <!-- Diesen Abschnitt ergänzen -->
- <image_name param="{$row['path']}" />
- <creator param="{$row['creator']}" />
- <email param="{$row['email']}" />
- <phone param="" />
- <short_description param="{$row['title']}" />
- <long_description param="{$row['description']}" />
- <!-- Diesen Abschnitt ergänzen -->
-
-
-
-
- <!-- *winvista* | *ubuntu* | sles | suse | rhel{2|3|4} | rhel4 | other24xlinux | other26xlinux | freebsd -->
- <os param="{$row['guestos']}" />
-
- <!-- *nat* | bridged | hostonly -->
- <network param="nat"> </network>
- <netcard param="e1000"> </netcard>
- <virtualmachine param="vmware"> </virtualmachine>
-
- <!-- *windows* bzw. *[Ww]in* | *ubuntu* | gentoo | bsd | suse -->
- <icon param="{$row['guestos']}" />
-
- <!-- true = wird im Menü angezeigt | false = ist im Menü ausgeblendet -->
- <active param="true" />
- <pools param="default"> </pools>
-
- <!-- true = sollte 3D-Beschleunigung erkannt werden, wird sie aktiviert | false = keine 3D-Beschleunigung -->
- <enable3d param="true" />
- </eintrag>
-HIERDOCK;
-}
-
-echo "</settings>\n";
-