[PC-BSD Commits] r2955 - in websites/pbidir.com/bibivu: bin etc/lang/ja slib tpl/css tpl/pbidir tpl/pbidir/images tpl/pbidir/images/login
svn at pcbsd.org
svn at pcbsd.org
Sun Nov 9 08:05:23 PST 2008
Author: fabry
Date: 2008-11-09 08:05:22 -0800 (Sun, 09 Nov 2008)
New Revision: 2955
Added:
websites/pbidir.com/bibivu/tpl/pbidir/images/login/
websites/pbidir.com/bibivu/tpl/pbidir/images/login/password.gif
websites/pbidir.com/bibivu/tpl/pbidir/images/login/username.gif
websites/pbidir.com/bibivu/tpl/pbidir/images/search.gif
Modified:
websites/pbidir.com/bibivu/bin/start.php
websites/pbidir.com/bibivu/etc/lang/ja/download.lang.php
websites/pbidir.com/bibivu/slib/cookies.php
websites/pbidir.com/bibivu/tpl/css/pbidir.css
websites/pbidir.com/bibivu/tpl/pbidir/download.php
websites/pbidir.com/bibivu/tpl/pbidir/login.php
Log:
- it now remembers the last mirror used for 30 days
- show icons in text area for login and search... just trying to make it look a bit better.. still waiting on some designer that will help with the L&F
- a few error fixes
Modified: websites/pbidir.com/bibivu/bin/start.php
===================================================================
--- websites/pbidir.com/bibivu/bin/start.php 2008-11-08 04:23:08 UTC (rev 2954)
+++ websites/pbidir.com/bibivu/bin/start.php 2008-11-09 16:05:22 UTC (rev 2955)
@@ -432,7 +432,7 @@
$this->display->assign('pbi_release', $pbi_release);
$preferred_mirror = load_library('cookies')->get('preferred_mirror','');
if($this->uri->get_num(5)>0 || $preferred_mirror>0){
- if($preferred_mirror<=0){
+ if($this->uri->get_num(5)>0){
$preferred_mirror = $this->uri->get_num(5);
}
$filters = array();
@@ -455,7 +455,7 @@
$this->display->assign('title', 'Downloading '.$pbi['name']);
//need to save this mirror as the preferred mirror
- load_library('cookies')->set('preferred_mirror',$mirror['id']);
+ load_library('cookies')->set('preferred_mirror',$mirror['id'], (30*24*3600));//set per 30 days
$this->display('download');
} else {
//have to choose the mirror to use
Modified: websites/pbidir.com/bibivu/etc/lang/ja/download.lang.php
===================================================================
--- websites/pbidir.com/bibivu/etc/lang/ja/download.lang.php 2008-11-08 04:23:08 UTC (rev 2954)
+++ websites/pbidir.com/bibivu/etc/lang/ja/download.lang.php 2008-11-09 16:05:22 UTC (rev 2955)
@@ -7,6 +7,6 @@
$lang['clickhere'] = 'こちらをクリックしてください';
$lang['mirror_home'] = 'ミラーサイトを訪問する';
$lang['return_pbi'] = 'pbiパッケージの説明に戻る';
-$lang['ftp_download'] = 'To download please right click and choose "save link as".';
-$lang['change_mirror'] = 'To choose another mirror'; //To choose another mirror <a>click here</a>
+$lang['ftp_download'] = 'ダウンロードするには右クリックし、「名前を付けてリンク先を保存」を選択して下さい。';
+$lang['change_mirror'] = '他のミラーサイトを選択する。'; //To choose another mirror <a>click here</a>
?>
\ No newline at end of file
Modified: websites/pbidir.com/bibivu/slib/cookies.php
===================================================================
--- websites/pbidir.com/bibivu/slib/cookies.php 2008-11-08 04:23:08 UTC (rev 2954)
+++ websites/pbidir.com/bibivu/slib/cookies.php 2008-11-09 16:05:22 UTC (rev 2955)
@@ -33,7 +33,7 @@
*/
public function setcookie($name = '', $value = '', $expire = 0, $domain = '', $path = '/', $secure=false){
//alias for set
- return $this->set($name = '', $value = '', $expire = 0, $domain = '', $path = '/', $secure=false);
+ return $this->set($name, $value, $expire, $domain, $path, $secure);
}
public function set($name = '', $value = '', $expire = 0, $domain = '', $path = '/', $secure=false){
@@ -81,6 +81,10 @@
* @param bool
* @return mixed
*/
+ public function getcookie($key = ''){
+ //alias for get
+ return $this->get($key);
+ }
public function get($key = ''){
if(isset($_COOKIE[$key])){
return $_COOKIE[$key];
@@ -97,6 +101,10 @@
* @param string the cookie path
* @return void
*/
+ public function deletecookie($name = '', $domain = '', $path = '/'){
+ //alias for delete
+ return $this->delete($name, $domain, $path);
+ }
public function delete($name = '', $domain = '', $path = '/'){
$this->set($name, '', -3600, $domain, $path);
}
Modified: websites/pbidir.com/bibivu/tpl/css/pbidir.css
===================================================================
--- websites/pbidir.com/bibivu/tpl/css/pbidir.css 2008-11-08 04:23:08 UTC (rev 2954)
+++ websites/pbidir.com/bibivu/tpl/css/pbidir.css 2008-11-09 16:05:22 UTC (rev 2955)
@@ -406,6 +406,10 @@
.search_text{
height:18px;
+ background-image: url(/bibivu/tpl/pbidir/images/search.gif);
+ background-position: 2px;
+ background-repeat: no-repeat;
+ padding-left:20px;
}
.search_button{
height:24px;
@@ -749,4 +753,16 @@
padding-right:2px;
width:25px;
float:left;
+}
+.login_username{
+ background-image: url(/bibivu/tpl/pbidir/images/login/username.gif);
+ background-position: 2px;
+ background-repeat: no-repeat;
+ padding-left:20px;
+}
+.login_password{
+ background-image: url(/bibivu/tpl/pbidir/images/login/password.gif);
+ background-position: 0px 2px;
+ background-repeat: no-repeat;
+ padding-left:20px;
}
\ No newline at end of file
Modified: websites/pbidir.com/bibivu/tpl/pbidir/download.php
===================================================================
--- websites/pbidir.com/bibivu/tpl/pbidir/download.php 2008-11-08 04:23:08 UTC (rev 2954)
+++ websites/pbidir.com/bibivu/tpl/pbidir/download.php 2008-11-09 16:05:22 UTC (rev 2955)
@@ -1,4 +1,4 @@
-<?php
+<br /><br /><?php
$uri = $mirror['url'];
$timeout = 2;
if(isset($pbi_release)){
@@ -22,11 +22,13 @@
?><?=load_library('lang')->get('download_nostart')?><?php
} else {
?><?=load_library('lang')->get('download_ftp_download')?><?php
- } ?> <a href="<?=$uri?>"><?=load_library('lang')->get('download_clickhere')?></a><br /><br /><?php
+ } ?> <a href="<?=$uri?>"><?=load_library('lang')->get('download_clickhere')?></a><br /><br />
+ <?=load_library('lang')->get('download_change_mirror')?> <a href="<?=$download_uri?>/<?=$pbi['id']?>/<?=$pbi_release['id']?>"><?=load_library('lang')->get('download_clickhere')?></a><br /><br /><?php
+} else {
+ ?><?=load_library('lang')->get('download_nostart')?> <a href="<?=$uri?>"><?=load_library('lang')->get('download_clickhere')?></a><br /><br /><?php
}
?>
<a href="<?=$pbi_uri?>/<?=$pbi['id']?>"><?=load_library('lang')->get('download_return_pbi')?></a><br /><br />
-<?=load_library('lang')->get('download_change_mirror')?> <a href="<?=$download_uri?>/<?=$pbi['id']?>/<?=$pbi_release['id']?>"><?=load_library('lang')->get('download_clickhere')?></a>
<?php
if($key!='ftp'){
?><script type="text/javascript" language="javascript"><!--
Property changes on: websites/pbidir.com/bibivu/tpl/pbidir/images/login/password.gif
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Property changes on: websites/pbidir.com/bibivu/tpl/pbidir/images/login/username.gif
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Property changes on: websites/pbidir.com/bibivu/tpl/pbidir/images/search.gif
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: websites/pbidir.com/bibivu/tpl/pbidir/login.php
===================================================================
--- websites/pbidir.com/bibivu/tpl/pbidir/login.php 2008-11-08 04:23:08 UTC (rev 2954)
+++ websites/pbidir.com/bibivu/tpl/pbidir/login.php 2008-11-09 16:05:22 UTC (rev 2955)
@@ -8,8 +8,8 @@
if (isset($error) && $error !='') {
?><div class="error_message"><?=$error?></div><?php
} ?>
- <?=load_library('lang')->get('username')?>: <input type="text" name="username" class="inputbox" size="25" value="<?=$username?>" />
- <?=load_library('lang')->get('password')?>: <input type="password" name="pws" class="inputbox" size="25" /><br /><br />
+ <?=load_library('lang')->get('username')?>: <input type="text" name="username" class="inputbox login_username" size="25" value="<?=$username?>" />
+ <?=load_library('lang')->get('password')?>: <input type="password" name="pws" class="inputbox login_password" size="25" /><br /><br />
<input type="submit" name="Submit" value="<?=load_library('lang')->get('login_button')?>" accesskey="L" />
</form>
</div>
More information about the Commits
mailing list