Mercurial > hg > Members > shoshi > webvirt
changeset 3:7201fd354bdf
added icon features , default icon
author | Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 14 Aug 2011 23:52:31 +0900 |
parents | bea0f05fb3c8 |
children | c3adb28473d6 |
files | app/controllers/icon_controller.php app/icon/default.png app/tmp/cache/persistent/cake_core_default_ja app/tmp/cache/persistent/cake_core_dir_map app/tmp/cache/persistent/cake_core_file_map app/tmp/cache/persistent/cake_core_object_map app/tmp/logs/error.log app/views/pages/display.ctp app/views/shutdown/error.ctp app/views/vncviewer/index.ctp |
diffstat | 10 files changed, 59 insertions(+), 22 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/controllers/icon_controller.php Sun Aug 14 23:52:31 2011 +0900 @@ -0,0 +1,39 @@ +<?php + +class IconController extends AppController +{ + public $name = "icon"; + public $autoRender = false; + public $uses = null; + + public function index() + { + $icon_dir = "../icon"; //relative path without slash + $this->autoRender = false; + $icon_default = "/default.png"; //file name must include slash + $icon_file = $icon_default; + + if(isset($this->params["url"]["uuid"])){ + $icon_file = "/".$this->params["url"]["uuid"]."png"; + } + + $icon = @file_get_contents($icon_dir.$icon_file); + if($icon === FALSE){ + //failed to get icon + $icon = file_get_contents($icon_dir.$icon_default); + } + + header("Content-Type: image/png"); + print($icon); + } + + public function EditIcon() + { + } + + public function SaveIcon() + { + } +} + +?>
--- a/app/tmp/cache/persistent/cake_core_default_ja Sat Aug 13 23:06:28 2011 +0900 +++ b/app/tmp/cache/persistent/cake_core_default_ja Sun Aug 14 23:52:31 2011 +0900 @@ -1,2 +1,2 @@ -1313244327 +1313333340 a:1:{s:11:"LC_MESSAGES";a:0:{}}
--- a/app/tmp/cache/persistent/cake_core_dir_map Sat Aug 13 23:06:28 2011 +0900 +++ b/app/tmp/cache/persistent/cake_core_dir_map Sun Aug 14 23:52:31 2011 +0900 @@ -1,2 +1,2 @@ -1313244327 -a:7:{s:31:"/var/www/html/webvirt/cake/libs";a:25:{i:0;s:31:"/var/www/html/webvirt/cake/libs";i:1;s:37:"/var/www/html/webvirt/cake/libs/cache";i:2;s:42:"/var/www/html/webvirt/cake/libs/controller";i:3;s:53:"/var/www/html/webvirt/cake/libs/controller/components";i:4;s:35:"/var/www/html/webvirt/cake/libs/log";i:5;s:37:"/var/www/html/webvirt/cake/libs/model";i:6;s:47:"/var/www/html/webvirt/cake/libs/model/behaviors";i:7;s:49:"/var/www/html/webvirt/cake/libs/model/datasources";i:8;s:53:"/var/www/html/webvirt/cake/libs/model/datasources/dbo";i:9;s:36:"/var/www/html/webvirt/cake/libs/view";i:10;s:45:"/var/www/html/webvirt/cake/libs/view/elements";i:11;s:51:"/var/www/html/webvirt/cake/libs/view/elements/email";i:12;s:56:"/var/www/html/webvirt/cake/libs/view/elements/email/html";i:13;s:56:"/var/www/html/webvirt/cake/libs/view/elements/email/text";i:14;s:43:"/var/www/html/webvirt/cake/libs/view/errors";i:15;s:44:"/var/www/html/webvirt/cake/libs/view/helpers";i:16;s:44:"/var/www/html/webvirt/cake/libs/view/layouts";i:17;s:50:"/var/www/html/webvirt/cake/libs/view/layouts/email";i:18;s:55:"/var/www/html/webvirt/cake/libs/view/layouts/email/html";i:19;s:55:"/var/www/html/webvirt/cake/libs/view/layouts/email/text";i:20;s:47:"/var/www/html/webvirt/cake/libs/view/layouts/js";i:21;s:48:"/var/www/html/webvirt/cake/libs/view/layouts/rss";i:22;s:48:"/var/www/html/webvirt/cake/libs/view/layouts/xml";i:23;s:42:"/var/www/html/webvirt/cake/libs/view/pages";i:24;s:46:"/var/www/html/webvirt/cake/libs/view/scaffolds";}s:37:"/var/www/html/webvirt/app/controllers";a:2:{i:0;s:37:"/var/www/html/webvirt/app/controllers";i:1;s:48:"/var/www/html/webvirt/app/controllers/components";}s:31:"/var/www/html/webvirt/app/views";a:22:{i:0;s:31:"/var/www/html/webvirt/app/views";i:1;s:38:"/var/www/html/webvirt/app/views/create";i:2;s:38:"/var/www/html/webvirt/app/views/define";i:3;s:40:"/var/www/html/webvirt/app/views/elements";i:4;s:46:"/var/www/html/webvirt/app/views/elements/email";i:5;s:51:"/var/www/html/webvirt/app/views/elements/email/html";i:6;s:51:"/var/www/html/webvirt/app/views/elements/email/text";i:7;s:48:"/var/www/html/webvirt/app/views/elements/storage";i:8;s:38:"/var/www/html/webvirt/app/views/errors";i:9;s:39:"/var/www/html/webvirt/app/views/helpers";i:10;s:39:"/var/www/html/webvirt/app/views/layouts";i:11;s:45:"/var/www/html/webvirt/app/views/layouts/email";i:12;s:50:"/var/www/html/webvirt/app/views/layouts/email/html";i:13;s:50:"/var/www/html/webvirt/app/views/layouts/email/text";i:14;s:42:"/var/www/html/webvirt/app/views/layouts/js";i:15;s:43:"/var/www/html/webvirt/app/views/layouts/rss";i:16;s:43:"/var/www/html/webvirt/app/views/layouts/xml";i:17;s:37:"/var/www/html/webvirt/app/views/pages";i:18;s:41:"/var/www/html/webvirt/app/views/scaffolds";i:19;s:40:"/var/www/html/webvirt/app/views/shutdown";i:20;s:39:"/var/www/html/webvirt/app/views/storage";i:21;s:41:"/var/www/html/webvirt/app/views/vncviewer";}s:36:"/var/www/html/webvirt/cake/libs/view";a:16:{i:0;s:36:"/var/www/html/webvirt/cake/libs/view";i:1;s:45:"/var/www/html/webvirt/cake/libs/view/elements";i:2;s:51:"/var/www/html/webvirt/cake/libs/view/elements/email";i:3;s:56:"/var/www/html/webvirt/cake/libs/view/elements/email/html";i:4;s:56:"/var/www/html/webvirt/cake/libs/view/elements/email/text";i:5;s:43:"/var/www/html/webvirt/cake/libs/view/errors";i:6;s:44:"/var/www/html/webvirt/cake/libs/view/helpers";i:7;s:44:"/var/www/html/webvirt/cake/libs/view/layouts";i:8;s:50:"/var/www/html/webvirt/cake/libs/view/layouts/email";i:9;s:55:"/var/www/html/webvirt/cake/libs/view/layouts/email/html";i:10;s:55:"/var/www/html/webvirt/cake/libs/view/layouts/email/text";i:11;s:47:"/var/www/html/webvirt/cake/libs/view/layouts/js";i:12;s:48:"/var/www/html/webvirt/cake/libs/view/layouts/rss";i:13;s:48:"/var/www/html/webvirt/cake/libs/view/layouts/xml";i:14;s:42:"/var/www/html/webvirt/cake/libs/view/pages";i:15;s:46:"/var/www/html/webvirt/cake/libs/view/scaffolds";}s:48:"/var/www/html/webvirt/app/controllers/components";a:1:{i:0;s:48:"/var/www/html/webvirt/app/controllers/components";}s:53:"/var/www/html/webvirt/cake/libs/controller/components";a:1:{i:0;s:53:"/var/www/html/webvirt/cake/libs/controller/components";}s:39:"/var/www/html/webvirt/app/views/helpers";a:1:{i:0;s:39:"/var/www/html/webvirt/app/views/helpers";}} +1313333340 +a:7:{s:35:"/home/shoshi/work/webvirt/cake/libs";a:25:{i:0;s:35:"/home/shoshi/work/webvirt/cake/libs";i:1;s:41:"/home/shoshi/work/webvirt/cake/libs/cache";i:2;s:46:"/home/shoshi/work/webvirt/cake/libs/controller";i:3;s:57:"/home/shoshi/work/webvirt/cake/libs/controller/components";i:4;s:39:"/home/shoshi/work/webvirt/cake/libs/log";i:5;s:41:"/home/shoshi/work/webvirt/cake/libs/model";i:6;s:51:"/home/shoshi/work/webvirt/cake/libs/model/behaviors";i:7;s:53:"/home/shoshi/work/webvirt/cake/libs/model/datasources";i:8;s:57:"/home/shoshi/work/webvirt/cake/libs/model/datasources/dbo";i:9;s:40:"/home/shoshi/work/webvirt/cake/libs/view";i:10;s:49:"/home/shoshi/work/webvirt/cake/libs/view/elements";i:11;s:55:"/home/shoshi/work/webvirt/cake/libs/view/elements/email";i:12;s:60:"/home/shoshi/work/webvirt/cake/libs/view/elements/email/html";i:13;s:60:"/home/shoshi/work/webvirt/cake/libs/view/elements/email/text";i:14;s:47:"/home/shoshi/work/webvirt/cake/libs/view/errors";i:15;s:48:"/home/shoshi/work/webvirt/cake/libs/view/helpers";i:16;s:48:"/home/shoshi/work/webvirt/cake/libs/view/layouts";i:17;s:54:"/home/shoshi/work/webvirt/cake/libs/view/layouts/email";i:18;s:59:"/home/shoshi/work/webvirt/cake/libs/view/layouts/email/html";i:19;s:59:"/home/shoshi/work/webvirt/cake/libs/view/layouts/email/text";i:20;s:51:"/home/shoshi/work/webvirt/cake/libs/view/layouts/js";i:21;s:52:"/home/shoshi/work/webvirt/cake/libs/view/layouts/rss";i:22;s:52:"/home/shoshi/work/webvirt/cake/libs/view/layouts/xml";i:23;s:46:"/home/shoshi/work/webvirt/cake/libs/view/pages";i:24;s:50:"/home/shoshi/work/webvirt/cake/libs/view/scaffolds";}s:41:"/home/shoshi/work/webvirt/app/controllers";a:2:{i:0;s:41:"/home/shoshi/work/webvirt/app/controllers";i:1;s:52:"/home/shoshi/work/webvirt/app/controllers/components";}s:35:"/home/shoshi/work/webvirt/app/views";a:23:{i:0;s:35:"/home/shoshi/work/webvirt/app/views";i:1;s:42:"/home/shoshi/work/webvirt/app/views/create";i:2;s:42:"/home/shoshi/work/webvirt/app/views/define";i:3;s:44:"/home/shoshi/work/webvirt/app/views/elements";i:4;s:50:"/home/shoshi/work/webvirt/app/views/elements/email";i:5;s:55:"/home/shoshi/work/webvirt/app/views/elements/email/html";i:6;s:55:"/home/shoshi/work/webvirt/app/views/elements/email/text";i:7;s:52:"/home/shoshi/work/webvirt/app/views/elements/storage";i:8;s:42:"/home/shoshi/work/webvirt/app/views/errors";i:9;s:43:"/home/shoshi/work/webvirt/app/views/helpers";i:10;s:40:"/home/shoshi/work/webvirt/app/views/icon";i:11;s:43:"/home/shoshi/work/webvirt/app/views/layouts";i:12;s:49:"/home/shoshi/work/webvirt/app/views/layouts/email";i:13;s:54:"/home/shoshi/work/webvirt/app/views/layouts/email/html";i:14;s:54:"/home/shoshi/work/webvirt/app/views/layouts/email/text";i:15;s:46:"/home/shoshi/work/webvirt/app/views/layouts/js";i:16;s:47:"/home/shoshi/work/webvirt/app/views/layouts/rss";i:17;s:47:"/home/shoshi/work/webvirt/app/views/layouts/xml";i:18;s:41:"/home/shoshi/work/webvirt/app/views/pages";i:19;s:45:"/home/shoshi/work/webvirt/app/views/scaffolds";i:20;s:44:"/home/shoshi/work/webvirt/app/views/shutdown";i:21;s:43:"/home/shoshi/work/webvirt/app/views/storage";i:22;s:45:"/home/shoshi/work/webvirt/app/views/vncviewer";}s:40:"/home/shoshi/work/webvirt/cake/libs/view";a:16:{i:0;s:40:"/home/shoshi/work/webvirt/cake/libs/view";i:1;s:49:"/home/shoshi/work/webvirt/cake/libs/view/elements";i:2;s:55:"/home/shoshi/work/webvirt/cake/libs/view/elements/email";i:3;s:60:"/home/shoshi/work/webvirt/cake/libs/view/elements/email/html";i:4;s:60:"/home/shoshi/work/webvirt/cake/libs/view/elements/email/text";i:5;s:47:"/home/shoshi/work/webvirt/cake/libs/view/errors";i:6;s:48:"/home/shoshi/work/webvirt/cake/libs/view/helpers";i:7;s:48:"/home/shoshi/work/webvirt/cake/libs/view/layouts";i:8;s:54:"/home/shoshi/work/webvirt/cake/libs/view/layouts/email";i:9;s:59:"/home/shoshi/work/webvirt/cake/libs/view/layouts/email/html";i:10;s:59:"/home/shoshi/work/webvirt/cake/libs/view/layouts/email/text";i:11;s:51:"/home/shoshi/work/webvirt/cake/libs/view/layouts/js";i:12;s:52:"/home/shoshi/work/webvirt/cake/libs/view/layouts/rss";i:13;s:52:"/home/shoshi/work/webvirt/cake/libs/view/layouts/xml";i:14;s:46:"/home/shoshi/work/webvirt/cake/libs/view/pages";i:15;s:50:"/home/shoshi/work/webvirt/cake/libs/view/scaffolds";}s:52:"/home/shoshi/work/webvirt/app/controllers/components";a:1:{i:0;s:52:"/home/shoshi/work/webvirt/app/controllers/components";}s:57:"/home/shoshi/work/webvirt/cake/libs/controller/components";a:1:{i:0;s:57:"/home/shoshi/work/webvirt/cake/libs/controller/components";}s:43:"/home/shoshi/work/webvirt/app/views/helpers";a:1:{i:0;s:43:"/home/shoshi/work/webvirt/app/views/helpers";}}
--- a/app/tmp/cache/persistent/cake_core_file_map Sat Aug 13 23:06:28 2011 +0900 +++ b/app/tmp/cache/persistent/cake_core_file_map Sun Aug 14 23:52:31 2011 +0900 @@ -1,2 +1,2 @@ -1313244327 -a:5:{s:4:"Core";a:9:{s:6:"Router";s:42:"/var/www/html/webvirt/cake/libs/router.php";s:13:"ClassRegistry";s:50:"/var/www/html/webvirt/cake/libs/class_registry.php";s:12:"Overloadable";s:48:"/var/www/html/webvirt/cake/libs/overloadable.php";s:8:"Security";s:44:"/var/www/html/webvirt/cake/libs/security.php";s:5:"Error";s:41:"/var/www/html/webvirt/cake/libs/error.php";s:8:"Sanitize";s:44:"/var/www/html/webvirt/cake/libs/sanitize.php";s:4:"l10n";s:40:"/var/www/html/webvirt/cake/libs/l10n.php";s:9:"Multibyte";s:45:"/var/www/html/webvirt/cake/libs/multibyte.php";s:4:"i18n";s:40:"/var/www/html/webvirt/cake/libs/i18n.php";}s:10:"Controller";a:4:{s:9:"Component";s:56:"/var/www/html/webvirt/cake/libs/controller/component.php";s:10:"Controller";s:57:"/var/www/html/webvirt/cake/libs/controller/controller.php";s:13:"AppController";s:61:"/var/www/html/webvirt/cake/libs/controller/app_controller.php";s:16:"DefineController";s:59:"/var/www/html/webvirt/app/controllers/define_controller.php";}s:4:"View";a:2:{s:6:"Helper";s:47:"/var/www/html/webvirt/cake/libs/view/helper.php";s:4:"View";s:45:"/var/www/html/webvirt/cake/libs/view/view.php";}s:9:"Component";a:1:{s:16:"SessionComponent";s:65:"/var/www/html/webvirt/cake/libs/controller/components/session.php";}s:6:"Helper";a:4:{s:9:"AppHelper";s:59:"/var/www/html/webvirt/cake/libs/view/helpers/app_helper.php";s:13:"SessionHelper";s:56:"/var/www/html/webvirt/cake/libs/view/helpers/session.php";s:10:"HtmlHelper";s:53:"/var/www/html/webvirt/cake/libs/view/helpers/html.php";s:10:"FormHelper";s:53:"/var/www/html/webvirt/cake/libs/view/helpers/form.php";}} +1313333340 +a:5:{s:4:"Core";a:7:{s:6:"Router";s:46:"/home/shoshi/work/webvirt/cake/libs/router.php";s:13:"ClassRegistry";s:54:"/home/shoshi/work/webvirt/cake/libs/class_registry.php";s:12:"Overloadable";s:52:"/home/shoshi/work/webvirt/cake/libs/overloadable.php";s:8:"Security";s:48:"/home/shoshi/work/webvirt/cake/libs/security.php";s:4:"l10n";s:44:"/home/shoshi/work/webvirt/cake/libs/l10n.php";s:9:"Multibyte";s:49:"/home/shoshi/work/webvirt/cake/libs/multibyte.php";s:4:"i18n";s:44:"/home/shoshi/work/webvirt/cake/libs/i18n.php";}s:10:"Controller";a:5:{s:9:"Component";s:60:"/home/shoshi/work/webvirt/cake/libs/controller/component.php";s:10:"Controller";s:61:"/home/shoshi/work/webvirt/cake/libs/controller/controller.php";s:13:"AppController";s:65:"/home/shoshi/work/webvirt/cake/libs/controller/app_controller.php";s:15:"PagesController";s:62:"/home/shoshi/work/webvirt/app/controllers/pages_controller.php";s:14:"IconController";s:61:"/home/shoshi/work/webvirt/app/controllers/icon_controller.php";}s:4:"View";a:2:{s:6:"Helper";s:51:"/home/shoshi/work/webvirt/cake/libs/view/helper.php";s:4:"View";s:49:"/home/shoshi/work/webvirt/cake/libs/view/view.php";}s:9:"Component";a:1:{s:16:"SessionComponent";s:69:"/home/shoshi/work/webvirt/cake/libs/controller/components/session.php";}s:6:"Helper";a:4:{s:9:"AppHelper";s:63:"/home/shoshi/work/webvirt/cake/libs/view/helpers/app_helper.php";s:13:"SessionHelper";s:60:"/home/shoshi/work/webvirt/cake/libs/view/helpers/session.php";s:10:"HtmlHelper";s:57:"/home/shoshi/work/webvirt/cake/libs/view/helpers/html.php";s:10:"FormHelper";s:57:"/home/shoshi/work/webvirt/cake/libs/view/helpers/form.php";}}
--- a/app/tmp/cache/persistent/cake_core_object_map Sat Aug 13 23:06:28 2011 +0900 +++ b/app/tmp/cache/persistent/cake_core_object_map Sun Aug 14 23:52:31 2011 +0900 @@ -1,2 +1,2 @@ -1313244327 +1313333340 a:1:{s:6:"plugin";a:0:{}}
--- a/app/tmp/logs/error.log Sat Aug 13 23:06:28 2011 +0900 +++ b/app/tmp/logs/error.log Sun Aug 14 23:52:31 2011 +0900 @@ -80,3 +80,16 @@ 2011-07-26 22:17:42 Warning: Warning (2): Invalid argument supplied for foreach() in [/var/www/html/webvirt/cake/libs/view/helpers/html.php, line 644] 2011-07-26 22:17:42 Warning: Warning (2): Invalid argument supplied for foreach() in [/var/www/html/webvirt/cake/libs/view/helpers/html.php, line 688] 2011-07-26 22:42:35 Warning: Warning (2): Invalid argument supplied for foreach() in [/var/www/html/webvirt/app/views/elements/storage/volumeinfotable.ctp, line 9] +2011-08-14 23:43:22 Warning: Warning (2): file_get_contents(../icon/6d913328-7529-321c-1d71-5d54af65bf65png) [<a href='http://php.net/function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in [/home/shoshi/work/webvirt/app/controllers/icon_controller.php, line 19] +2011-08-14 23:43:22 Warning: Warning (2): file_get_contents(../icon/dbb4b16f-9787-5402-c284-d1b7fa6b09e6png) [<a href='http://php.net/function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in [/home/shoshi/work/webvirt/app/controllers/icon_controller.php, line 19] +2011-08-14 23:43:24 Warning: Warning (2): file_get_contents(../icon/dbb4b16f-9787-5402-c284-d1b7fa6b09e6png) [<a href='http://php.net/function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in [/home/shoshi/work/webvirt/app/controllers/icon_controller.php, line 19] +2011-08-14 23:43:24 Warning: Warning (2): file_get_contents(../icon/6d913328-7529-321c-1d71-5d54af65bf65png) [<a href='http://php.net/function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in [/home/shoshi/work/webvirt/app/controllers/icon_controller.php, line 19] +2011-08-14 23:43:31 Warning: Warning (2): file_get_contents(../icon/6d913328-7529-321c-1d71-5d54af65bf65png) [<a href='http://php.net/function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in [/home/shoshi/work/webvirt/app/controllers/icon_controller.php, line 19] +2011-08-14 23:44:19 Warning: Warning (2): file_get_contents(../icon/6d913328-7529-321c-1d71-5d54af65bf65png) [<a href='http://php.net/function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in [/home/shoshi/work/webvirt/app/controllers/icon_controller.php, line 20] +2011-08-14 23:45:22 Warning: Warning (2): file_get_contents(../icon/6d913328-7529-321c-1d71-5d54af65bf65png) [<a href='http://php.net/function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in [/home/shoshi/work/webvirt/app/controllers/icon_controller.php, line 20] +2011-08-14 23:46:28 Warning: Warning (2): file_get_contents(../icon/6d913328-7529-321c-1d71-5d54af65bf65png) [<a href='http://php.net/function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in [/home/shoshi/work/webvirt/app/controllers/icon_controller.php, line 20] +2011-08-14 23:46:32 Warning: Warning (2): file_get_contents(../icon/6d913328-7529-321c-1d71-5d54af65bf65png) [<a href='http://php.net/function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in [/home/shoshi/work/webvirt/app/controllers/icon_controller.php, line 20] +2011-08-14 23:47:14 Warning: Warning (2): file_get_contents(../icon/6d913328-7529-321c-1d71-5d54af65bf65png) [<a href='http://php.net/function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in [/home/shoshi/work/webvirt/app/controllers/icon_controller.php, line 20] +2011-08-14 23:47:18 Warning: Warning (2): file_get_contents(../icon/6d913328-7529-321c-1d71-5d54af65bf65png) [<a href='http://php.net/function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in [/home/shoshi/work/webvirt/app/controllers/icon_controller.php, line 20] +2011-08-14 23:47:32 Warning: Warning (2): file_get_contents(../icon/6d913328-7529-321c-1d71-5d54af65bf65png) [<a href='http://php.net/function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in [/home/shoshi/work/webvirt/app/controllers/icon_controller.php, line 20] +2011-08-14 23:48:18 Warning: Warning (2): file_get_contents(../icon/6d913328-7529-321c-1d71-5d54af65bf65png) [<a href='http://php.net/function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in [/home/shoshi/work/webvirt/app/controllers/icon_controller.php, line 20]
--- a/app/views/pages/display.ctp Sat Aug 13 23:06:28 2011 +0900 +++ b/app/views/pages/display.ctp Sun Aug 14 23:52:31 2011 +0900 @@ -23,6 +23,7 @@ </table> <h2>Domains</h2> <?php foreach($domains as $dom){ ?> +<img src="icon/index?uuid=<?php echo $dom["uuid"] ?>" /> <h3><?php echo $dom["name"]; ?></h3> <table> <tr>
--- a/app/views/shutdown/error.ctp Sat Aug 13 23:06:28 2011 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -<h2>Error</h2>
--- a/app/views/vncviewer/index.ctp Sat Aug 13 23:06:28 2011 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -<applet archive="tightvnc-jviewer.jar" code="com.glavsoft.viewer.Viewer" width="1" height="1"> - <param name="Host" value="<?php echo $hostname; ?>"/> - <param name="Port" value="<?php echo $port; ?>"/> - <param name="OpenNewWindow" value="yes"/> - <param name="ShowControls" value="yes"/> - <param name="ViewOnly" value="no"/> - <param name="ShareDesktop" value="yes"/> - <param name="AllowCopyRect" value="yes"/> - <param name="Encoding" value="Tight"/> - <param name="CompressionLevel" value=""/> - <param name="JpegImageQuality" value=""/> - <param name="LocalPointer" value="On"/> - <param name="colorDepth" value=""/> - <param name="ScalingFactor" value="100"/> -</applet>