Changeset e490642 in github


Ignore:
Timestamp:
Mar 1, 2011 5:19:19 PM (2 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
044d664
Parents:
15e9441
Message:

Add skin_logo config option to installer; show drop-down list for skin selection

Location:
installer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • installer/config.php

    r868deb5 re490642  
    501501<?php 
    502502 
    503 $input_skin = new html_inputfield(array('name' => '_skin', 'size' => 30, 'id' => "cfgskin")); 
     503$input_skin = new html_select(array('name' => '_skin', 'id' => "cfgskin")); 
     504$input_skin->add($RCI->list_skins()); 
    504505echo $input_skin->show($RCI->getprop('skin')); 
    505506 
    506507?> 
    507508<div>Name of interface skin (folder in /skins)</div> 
     509</dd> 
     510 
     511<dt class="propname">skin_logo</dt> 
     512<dd> 
     513<?php 
     514 
     515$input_skin = new html_inputfield(array('name' => '_skin_logo', 'size' => 50, 'id' => "cfgskinlogo")); 
     516echo $input_skin->show($RCI->getprop('skin_logo')); 
     517 
     518?> 
     519<div>Custom image to display instead of the Roundcube logo.</div> 
     520<p class="hint">Enter a URL relative to the document root of this Roundcube installation.</p> 
    508521</dd> 
    509522 
  • installer/rcube_install.php

    re6bb836 re490642  
    512512  } 
    513513   
     514  /** 
     515   * Return a list with available subfolders of the skin directory 
     516   */ 
     517  function list_skins() 
     518  { 
     519    $skins = array(); 
     520    $skindir = INSTALL_PATH . 'skins/'; 
     521    foreach (glob($skindir . '*') as $path) { 
     522      if (is_dir($path) && is_readable($path)) { 
     523        $skins[] = substr($path, strlen($skindir)); 
     524      } 
     525    } 
     526    return $skins; 
     527  } 
    514528   
    515529  /** 
Note: See TracChangeset for help on using the changeset viewer.