summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/controllers/BootosController.php11
-rw-r--r--application/forms/BootosCreate.php4
-rw-r--r--application/models/BootOsMapper.php2
-rw-r--r--public/media/css/style.css7
-rwxr-xr-x[-rw-r--r--]resources/bootos/1/initramfs/initramfsbin6077246 -> 6077246 bytes
-rwxr-xr-x[-rw-r--r--]resources/bootos/1/kernel/kernelbin4167200 -> 4167200 bytes
-rw-r--r--resources/bootos/18/initramfs/icon_kinoma-play_40.pngbin0 -> 2589 bytes
-rw-r--r--resources/bootos/18/kernel/icon_kinoma-play_40.pngbin0 -> 2589 bytes
8 files changed, 20 insertions, 4 deletions
diff --git a/application/controllers/BootosController.php b/application/controllers/BootosController.php
index 37886b4..3a7ab90 100644
--- a/application/controllers/BootosController.php
+++ b/application/controllers/BootosController.php
@@ -10,6 +10,7 @@ class BootosController extends Zend_Controller_Action
public function indexAction()
{
+
$bootosmapper = new Application_Model_BootOsMapper();
$groupmapper = new Application_Model_GroupMapper();
@@ -50,13 +51,21 @@ class BootosController extends Zend_Controller_Action
$bootos->setCreated(time());
try {
- $bootosmapper->save($bootos);
+ $bootosID = $bootosmapper->save($bootos);
+
+ $initpath = "../resources/bootos/".$bootosID."/initramfs/";
+ $kernelpath = "../resources/bootos/".$bootosID."/kernel/";
+
+ exec("wget -P ".$kernelpath." ".$bootos->getPath_kernel());
+ exec("wget -P ".$initpath." ".$bootos->getPath_init());
+
}catch(Zend_Exception $e)
{
echo "Caught exception: " . get_class($e) . "<br/>";
echo "Message: " . $e->getMessage() . "<br/>";
}
+
$this->_redirect('/bootos');
}
}
diff --git a/application/forms/BootosCreate.php b/application/forms/BootosCreate.php
index 8f699ce..0377197 100644
--- a/application/forms/BootosCreate.php
+++ b/application/forms/BootosCreate.php
@@ -56,7 +56,7 @@ class Application_Form_BootosCreate extends Zend_Form
$this->addElement('text', 'path_init', array(
'filters' => array('StringTrim'),
'validators' => array(
- array('StringLength', false, array(0, 50)),
+ array('StringLength', false, array(0, 250)),
),
'required' => true,
'size' => 50,
@@ -66,7 +66,7 @@ class Application_Form_BootosCreate extends Zend_Form
$this->addElement('text', 'path_kernel', array(
'filters' => array('StringTrim'),
'validators' => array(
- array('StringLength', false, array(0, 50)),
+ array('StringLength', false, array(0, 250)),
),
'required' => true,
'size' => 50,
diff --git a/application/models/BootOsMapper.php b/application/models/BootOsMapper.php
index 66de08d..fab73f2 100644
--- a/application/models/BootOsMapper.php
+++ b/application/models/BootOsMapper.php
@@ -51,7 +51,7 @@ class Application_Model_BootOsMapper
$data = array('bootosID'=> $botos->getID() ,'configID'=> $botos->getConfigID() ,'groupID'=> $botos->getGroupID() ,'title'=> $botos->getTitle(), 'membershipID'=> $botos->getMembershipID() ,'path_init'=> $botos->getPath_init() ,'path_kernel'=> $botos->getPath_kernel() ,'defaultkcl'=> $botos->getDefaultkcl() ,'created'=> $botos->getCreated() ,'description'=> $botos->getDescription() ,'expires'=> $botos->getExpires() ,'public'=> $botos->getPublic() );
if (null === ($id = $botos->getID()) ) {
unset($data['bootosID']);
- $this->getDbTable()->insert($data);
+ return $this->getDbTable()->insert($data);
} else {
$this->getDbTable()->update($data, array('bootosID = ?' => $id));
}
diff --git a/public/media/css/style.css b/public/media/css/style.css
index 24e357b..5ad7c1d 100644
--- a/public/media/css/style.css
+++ b/public/media/css/style.css
@@ -113,8 +113,15 @@ tr.entry {
background-color:#FFF5CC;
}
+tr.entry>td {
+width:200px;
+overflow:hidden;
+white-space:nowrap;
+}
+
tr.detail>td {
border:none;
+
}
td.arrowtop{
vertical-align:top;
diff --git a/resources/bootos/1/initramfs/initramfs b/resources/bootos/1/initramfs/initramfs
index 20fc809..20fc809 100644..100755
--- a/resources/bootos/1/initramfs/initramfs
+++ b/resources/bootos/1/initramfs/initramfs
Binary files differ
diff --git a/resources/bootos/1/kernel/kernel b/resources/bootos/1/kernel/kernel
index 960d26a..960d26a 100644..100755
--- a/resources/bootos/1/kernel/kernel
+++ b/resources/bootos/1/kernel/kernel
Binary files differ
diff --git a/resources/bootos/18/initramfs/icon_kinoma-play_40.png b/resources/bootos/18/initramfs/icon_kinoma-play_40.png
new file mode 100644
index 0000000..7a5b01e
--- /dev/null
+++ b/resources/bootos/18/initramfs/icon_kinoma-play_40.png
Binary files differ
diff --git a/resources/bootos/18/kernel/icon_kinoma-play_40.png b/resources/bootos/18/kernel/icon_kinoma-play_40.png
new file mode 100644
index 0000000..7a5b01e
--- /dev/null
+++ b/resources/bootos/18/kernel/icon_kinoma-play_40.png
Binary files differ