[PC-BSD Commits] r1755 - in websites/pbidir.com: . bibivu/bin bibivu/etc/lang/de bibivu/etc/lang/en bibivu/etc/lang/es bibivu/etc/lang/fr bibivu/etc/lang/it bibivu/etc/lang/nl bibivu/etc/lang/tr bibivu/lib bibivu/slib bibivu/tpl/pbidir
svn at pcbsd.org
svn at pcbsd.org
Thu Apr 24 05:02:48 PDT 2008
Author: fabry
Date: 2008-04-24 05:02:47 -0700 (Thu, 24 Apr 2008)
New Revision: 1755
Added:
websites/pbidir.com/bibivu/slib/bbcode.php
websites/pbidir.com/robots.txt
Modified:
websites/pbidir.com/.htaccess
websites/pbidir.com/bibivu/bin/start.php
websites/pbidir.com/bibivu/etc/lang/de/pbi.lang.php
websites/pbidir.com/bibivu/etc/lang/en/pbi.lang.php
websites/pbidir.com/bibivu/etc/lang/es/pbi.lang.php
websites/pbidir.com/bibivu/etc/lang/fr/pbi.lang.php
websites/pbidir.com/bibivu/etc/lang/it/pbi.lang.php
websites/pbidir.com/bibivu/etc/lang/nl/pbi.lang.php
websites/pbidir.com/bibivu/etc/lang/tr/pbi.lang.php
websites/pbidir.com/bibivu/lib/pbi.php
websites/pbidir.com/bibivu/slib/cookies.php
websites/pbidir.com/bibivu/tpl/pbidir/pbi.php
Log:
bbcode on PBI description and ability to add an "offsite" download URL.
Modified: websites/pbidir.com/.htaccess
===================================================================
--- websites/pbidir.com/.htaccess 2008-04-23 20:58:26 UTC (rev 1754)
+++ websites/pbidir.com/.htaccess 2008-04-24 12:02:47 UTC (rev 1755)
@@ -2,7 +2,7 @@
RewriteRule ^rss/recent.rdf$ /bt/rss/pbi.rss [NC,L]
-RewriteCond %{REQUEST_URI} !.php|.css|.js|.jpg|.jpeg|.gif|.png$
+RewriteCond %{REQUEST_URI} !.php|.css|.js|.jpg|.jpeg|.gif|.png|.txt$
RewriteRule ^(.*)$ /index.php/$1 [L]
Modified: websites/pbidir.com/bibivu/bin/start.php
===================================================================
--- websites/pbidir.com/bibivu/bin/start.php 2008-04-23 20:58:26 UTC (rev 1754)
+++ websites/pbidir.com/bibivu/bin/start.php 2008-04-24 12:02:47 UTC (rev 1755)
@@ -324,7 +324,7 @@
'field_id'=>'id',
);
$this->display->assign('can_write',$this->permissions->can('pbi', 'write',$owner));
-
+
$this->display->assign('pbi', $pbi);
$this->display->assign('category', $category);
$this->display->assign('comments', $comments);
Modified: websites/pbidir.com/bibivu/etc/lang/de/pbi.lang.php
===================================================================
--- websites/pbidir.com/bibivu/etc/lang/de/pbi.lang.php 2008-04-23 20:58:26 UTC (rev 1754)
+++ websites/pbidir.com/bibivu/etc/lang/de/pbi.lang.php 2008-04-24 12:02:47 UTC (rev 1755)
@@ -1,40 +1,43 @@
-<?php
-//pbi strings
-$lang['description'] = 'Beschreibung';
-$lang['vendor'] = 'Hersteller';
-$lang['avg_rate'] = 'Beliebtheits Skala';
-$lang['your_rate'] = 'Ihre Bewertung';
-$lang['downloads'] = 'Downloads';
-$lang['licence'] = 'Lizenz';
-$lang['maintainer'] = 'Paket Betreuer';
-
-$lang['version'] = 'Version';
-$lang['summary'] = 'Zusammenfassung';
-$lang['size'] = 'Gröse';
-$lang['added'] = 'Hinzugefügt';
-
-$lang['login_to_vote'] = 'Bitte <a href="%s">einloggen</a> um Bewerten zu können';
-$lang['cannot_vote'] = 'Entschuldigung, zur Zeit können Sie nicht Bewerten!';
-
-$lang['login_to_comment'] = 'Bitte <a href="%s">einloggen</a> um einen Kommentar verfassen zu können';
-$lang['cannot_comment'] = 'Entschuldigung, zur Zeit ist es nicht möglich einen Kommentar zu verfassen';
-$lang['leave_comment'] = 'Hier klicken um einen Kommentar zu verfassen';
-
-$lang['subscribe'] = 'Bei Updates Benachrichtung erhalten';
-$lang['unsubscribe'] = 'Keine Benachrichtung mehr erhalten bei Updates';
-
-$lang['succesfully_subscribed'] = 'Erfolgreich angemeldet um Meldung über Updates zu erhalten';
-$lang['succesfully_unsubscribed'] = 'Erfolgreich abgemeldet um keine Meldung mehr über Updates zu erhalten';
-
-$lang['alternative'] = 'Alternative zu';
-
-$lang['alternative_for_windows_package'] = 'Alternative zu einem Windows Programm';
-$lang['use_wine'] = 'Benutzt Wine';
-$lang['interface'] = 'Interface';
-$lang['graphical'] = 'Grafisch';
-$lang['web'] = 'Web';
-$lang['command_line'] = 'Kommandozeile';
-$lang['graphical_interface'] = 'Grafisches Interface';
-$lang['web_interface'] = 'Web Interface';
-$lang['command_line_interface'] = 'Kommandozeile';
+<?php
+//pbi strings
+$lang['description'] = 'Beschreibung';
+$lang['vendor'] = 'Hersteller';
+$lang['avg_rate'] = 'Beliebtheits Skala';
+$lang['your_rate'] = 'Ihre Bewertung';
+$lang['downloads'] = 'Downloads';
+$lang['licence'] = 'Lizenz';
+$lang['maintainer'] = 'Paket Betreuer';
+
+$lang['version'] = 'Version';
+$lang['summary'] = 'Zusammenfassung';
+$lang['size'] = 'Gröse';
+$lang['added'] = 'Hinzugefügt';
+
+$lang['login_to_vote'] = 'Bitte <a href="%s">einloggen</a> um Bewerten zu können';
+$lang['cannot_vote'] = 'Entschuldigung, zur Zeit können Sie nicht Bewerten!';
+
+$lang['login_to_comment'] = 'Bitte <a href="%s">einloggen</a> um einen Kommentar verfassen zu können';
+$lang['cannot_comment'] = 'Entschuldigung, zur Zeit ist es nicht möglich einen Kommentar zu verfassen';
+$lang['leave_comment'] = 'Hier klicken um einen Kommentar zu verfassen';
+
+$lang['subscribe'] = 'Bei Updates Benachrichtung erhalten';
+$lang['unsubscribe'] = 'Keine Benachrichtung mehr erhalten bei Updates';
+
+$lang['succesfully_subscribed'] = 'Erfolgreich angemeldet um Meldung über Updates zu erhalten';
+$lang['succesfully_unsubscribed'] = 'Erfolgreich abgemeldet um keine Meldung mehr über Updates zu erhalten';
+
+$lang['alternative'] = 'Alternative zu';
+
+$lang['alternative_for_windows_package'] = 'Alternative zu einem Windows Programm';
+$lang['use_wine'] = 'Benutzt Wine';
+$lang['interface'] = 'Interface';
+$lang['graphical'] = 'Grafisch';
+$lang['web'] = 'Web';
+$lang['command_line'] = 'Kommandozeile';
+$lang['graphical_interface'] = 'Grafisches Interface';
+$lang['web_interface'] = 'Web Interface';
+$lang['command_line_interface'] = 'Kommandozeile';
+
+$lang['offsite_download'] = 'Downloads from another site';
+
?>
\ No newline at end of file
Modified: websites/pbidir.com/bibivu/etc/lang/en/pbi.lang.php
===================================================================
--- websites/pbidir.com/bibivu/etc/lang/en/pbi.lang.php 2008-04-23 20:58:26 UTC (rev 1754)
+++ websites/pbidir.com/bibivu/etc/lang/en/pbi.lang.php 2008-04-24 12:02:47 UTC (rev 1755)
@@ -1,40 +1,43 @@
-<?php
-//pbi strings
-$lang['description'] = 'Description';
-$lang['vendor'] = 'Vendor';
-$lang['avg_rate'] = 'Average Rate';
-$lang['your_rate'] = 'Your Rate';
-$lang['downloads'] = 'Downloads';
-$lang['licence'] = 'Licence';
-$lang['maintainer'] = 'Maintainer';
-
-$lang['version'] = 'Version';
-$lang['summary'] = 'Summary';
-$lang['size'] = 'Size';
-$lang['added'] = 'Added';
-
-$lang['login_to_vote'] = 'Please <a href="%s">Login</a> To be able to Vote';
-$lang['cannot_vote'] = 'Sorry, You cannot Vote at this time!';
-
-$lang['login_to_comment'] = 'Please <a href="%s">Login</a> To be able to Add a Comment to this pbi';
-$lang['cannot_comment'] = 'Sorry, You cannot Comment at this time!';
-$lang['leave_comment'] = 'Click Here To Add a Comment To This pbi';
-
-$lang['subscribe'] = 'Subscribe to receive updates';
-$lang['unsubscribe'] = 'Unsubscribe from receiving updates';
-
-$lang['succesfully_subscribed'] = 'Succesfully subscribed to receive updates';
-$lang['succesfully_unsubscribed'] = 'Succesfully unsubscribed from receiving updates';
-
-$lang['alternative'] = 'Alternative for';
-
-$lang['alternative_for_windows_package'] = 'Alternative for a windows package';
-$lang['use_wine'] = 'Uses Wine';
-$lang['interface'] = 'Interface';
-$lang['graphical'] = 'Graphical';
-$lang['web'] = 'Web';
-$lang['command_line'] = 'Command Line';
-$lang['graphical_interface'] = 'Graphical Interface';
-$lang['web_interface'] = 'Web Interface';
-$lang['command_line_interface'] = 'Command Line';
+<?php
+//pbi strings
+$lang['description'] = 'Description';
+$lang['vendor'] = 'Vendor';
+$lang['avg_rate'] = 'Average Rate';
+$lang['your_rate'] = 'Your Rate';
+$lang['downloads'] = 'Downloads';
+$lang['licence'] = 'Licence';
+$lang['maintainer'] = 'Maintainer';
+
+$lang['version'] = 'Version';
+$lang['summary'] = 'Summary';
+$lang['size'] = 'Size';
+$lang['added'] = 'Added';
+
+$lang['login_to_vote'] = 'Please <a href="%s">Login</a> To be able to Vote';
+$lang['cannot_vote'] = 'Sorry, You cannot Vote at this time!';
+
+$lang['login_to_comment'] = 'Please <a href="%s">Login</a> To be able to Add a Comment to this pbi';
+$lang['cannot_comment'] = 'Sorry, You cannot Comment at this time!';
+$lang['leave_comment'] = 'Click Here To Add a Comment To This pbi';
+
+$lang['subscribe'] = 'Subscribe to receive updates';
+$lang['unsubscribe'] = 'Unsubscribe from receiving updates';
+
+$lang['succesfully_subscribed'] = 'Succesfully subscribed to receive updates';
+$lang['succesfully_unsubscribed'] = 'Succesfully unsubscribed from receiving updates';
+
+$lang['alternative'] = 'Alternative for';
+
+$lang['alternative_for_windows_package'] = 'Alternative for a windows package';
+$lang['use_wine'] = 'Uses Wine';
+$lang['interface'] = 'Interface';
+$lang['graphical'] = 'Graphical';
+$lang['web'] = 'Web';
+$lang['command_line'] = 'Command Line';
+$lang['graphical_interface'] = 'Graphical Interface';
+$lang['web_interface'] = 'Web Interface';
+$lang['command_line_interface'] = 'Command Line';
+
+$lang['offsite_download'] = 'Downloads from another site';
+
?>
\ No newline at end of file
Modified: websites/pbidir.com/bibivu/etc/lang/es/pbi.lang.php
===================================================================
--- websites/pbidir.com/bibivu/etc/lang/es/pbi.lang.php 2008-04-23 20:58:26 UTC (rev 1754)
+++ websites/pbidir.com/bibivu/etc/lang/es/pbi.lang.php 2008-04-24 12:02:47 UTC (rev 1755)
@@ -1,40 +1,43 @@
-<?php
-//pbi strings
-$lang['description'] = 'Descripción';
-$lang['vendor'] = 'Desarrollador';
-$lang['avg_rate'] = 'Puntuación Media';
-$lang['your_rate'] = 'Tu Puntuación';
-$lang['downloads'] = 'Descargas';
-$lang['licence'] = 'Licencia';
-$lang['maintainer'] = 'Mantenimiento';
-
-$lang['version'] = 'Versión';
-$lang['summary'] = 'Sumario';
-$lang['size'] = 'Tamaño';
-$lang['added'] = 'Fecha';
-
-$lang['login_to_vote'] = 'Por favor, <a href="%s">Identifícate</a> para poder registrar tu puntuación';
-$lang['cannot_vote'] = 'Lo siento, no puedes votar en este momento!';
-
-$lang['login_to_comment'] = 'Por favor, <a href="%s">Identifícate</a> para poder añadir un comentario a este pbi';
-$lang['cannot_comment'] = 'Lo siento, no puedes comentar en este momento!';
-$lang['leave_comment'] = 'Cliquea aquí para añadir un comentario a este pbi';
-
-$lang['subscribe'] = 'Suscríbete para recibir actualizaciones';
-$lang['unsubscribe'] = 'Cancela la suscripción para dejar de recibi!
r actualizaciones';
-
-$lang['succesfully_subscribed'] = 'Acaba de ser suscrito con satisfacción';
-$lang['succesfully_unsubscribed'] = 'Acaba de cancelar la suscripción con satisfacción';
-
-$lang['alternative'] = 'Alternativa para';
-
-$lang['alternative_for_windows_package'] = 'Alternativa a una aplicación de Windows';
-$lang['use_wine'] = 'Usa Wine';
-$lang['interface'] = 'Interfaz';
-$lang['graphical'] = 'Grafico';
-$lang['web'] = 'Web';
-$lang['command_line'] = 'Linea de Comandos';
-$lang['graphical_interface'] = 'Interfaz Gráfico';
-$lang['web_interface'] = 'Interfaz Web';
-$lang['command_line_interface'] = 'Linea de Comandos';
+<?php
+//pbi strings
+$lang['description'] = 'Descripción';
+$lang['vendor'] = 'Desarrollador';
+$lang['avg_rate'] = 'Puntuación Media';
+$lang['your_rate'] = 'Tu Puntuación';
+$lang['downloads'] = 'Descargas';
+$lang['licence'] = 'Licencia';
+$lang['maintainer'] = 'Mantenimiento';
+
+$lang['version'] = 'Versión';
+$lang['summary'] = 'Sumario';
+$lang['size'] = 'Tamaño';
+$lang['added'] = 'Fecha';
+
+$lang['login_to_vote'] = 'Por favor, <a href="%s">Identifícate</a> para poder registrar tu puntuación';
+$lang['cannot_vote'] = 'Lo siento, no puedes votar en este momento!';
+
+$lang['login_to_comment'] = 'Por favor, <a href="%s">Identifícate</a> para poder añadir un comentario a este pbi';
+$lang['cannot_comment'] = 'Lo siento, no puedes comentar en este momento!';
+$lang['leave_comment'] = 'Cliquea aquí para añadir un comentario a este pbi';
+
+$lang['subscribe'] = 'Suscríbete para recibir actualizaciones';
+$lang['unsubscribe'] = 'Cancela la suscripción para dejar de recibir actualizaciones';
+
+$lang['succesfully_subscribed'] = 'Acaba de ser suscrito con satisfacción';
+$lang['succesfully_unsubscribed'] = 'Acaba de cancelar la suscripción con satisfacción';
+
+$lang['alternative'] = 'Alternativa para';
+
+$lang['alternative_for_windows_package'] = 'Alternativa a una aplicación de Windows';
+$lang['use_wine'] = 'Usa Wine';
+$lang['interface'] = 'Interfaz';
+$lang['graphical'] = 'Grafico';
+$lang['web'] = 'Web';
+$lang['command_line'] = 'Linea de Comandos';
+$lang['graphical_interface'] = 'Interfaz Gráfico';
+$lang['web_interface'] = 'Interfaz Web';
+$lang['command_line_interface'] = 'Linea de Comandos';
+
+$lang['offsite_download'] = 'Downloads from another site';
+
?>
\ No newline at end of file
Modified: websites/pbidir.com/bibivu/etc/lang/fr/pbi.lang.php
===================================================================
--- websites/pbidir.com/bibivu/etc/lang/fr/pbi.lang.php 2008-04-23 20:58:26 UTC (rev 1754)
+++ websites/pbidir.com/bibivu/etc/lang/fr/pbi.lang.php 2008-04-24 12:02:47 UTC (rev 1755)
@@ -37,4 +37,7 @@
$lang['graphical_interface'] = 'Interface Graphique';
$lang['web_interface'] = 'Interface Web';
$lang['command_line_interface'] = 'Ligne de commande';
+
+$lang['offsite_download'] = 'Downloads from another site';
+
?>
\ No newline at end of file
Modified: websites/pbidir.com/bibivu/etc/lang/it/pbi.lang.php
===================================================================
--- websites/pbidir.com/bibivu/etc/lang/it/pbi.lang.php 2008-04-23 20:58:26 UTC (rev 1754)
+++ websites/pbidir.com/bibivu/etc/lang/it/pbi.lang.php 2008-04-24 12:02:47 UTC (rev 1755)
@@ -37,4 +37,7 @@
$lang['graphical_interface'] = 'Interfaccia Grafica';
$lang['web_interface'] = 'Interfaccia Web';
$lang['command_line_interface'] = 'Linea di Comando';
+
+$lang['offsite_download'] = 'Downloads da altro sito';
+
?>
\ No newline at end of file
Modified: websites/pbidir.com/bibivu/etc/lang/nl/pbi.lang.php
===================================================================
--- websites/pbidir.com/bibivu/etc/lang/nl/pbi.lang.php 2008-04-23 20:58:26 UTC (rev 1754)
+++ websites/pbidir.com/bibivu/etc/lang/nl/pbi.lang.php 2008-04-24 12:02:47 UTC (rev 1755)
@@ -37,4 +37,7 @@
$lang['graphical_interface'] = 'Grafische Interface';
$lang['web_interface'] = 'Web Interface';
$lang['command_line_interface'] = 'Opdrachtregel';
+
+$lang['offsite_download'] = 'Downloads from another site';
+
?>
\ No newline at end of file
Modified: websites/pbidir.com/bibivu/etc/lang/tr/pbi.lang.php
===================================================================
--- websites/pbidir.com/bibivu/etc/lang/tr/pbi.lang.php 2008-04-23 20:58:26 UTC (rev 1754)
+++ websites/pbidir.com/bibivu/etc/lang/tr/pbi.lang.php 2008-04-24 12:02:47 UTC (rev 1755)
@@ -37,4 +37,7 @@
$lang['graphical_interface'] = 'Grafiksel Arayüz';
$lang['web_interface'] = 'İnternet Arayüzü';
$lang['command_line_interface'] = 'Komut Satırı';
+
+$lang['offsite_download'] = 'Downloads from another site';
+
?>
\ No newline at end of file
Modified: websites/pbidir.com/bibivu/lib/pbi.php
===================================================================
--- websites/pbidir.com/bibivu/lib/pbi.php 2008-04-23 20:58:26 UTC (rev 1754)
+++ websites/pbidir.com/bibivu/lib/pbi.php 2008-04-24 12:02:47 UTC (rev 1755)
@@ -339,6 +339,19 @@
'image_width' => 40,
'image_heigth' => NULL,
);
+ $fields['offsite_download_url'] = array( 'show' => false,
+ 'view_link' => false,
+ 'edit_link'=>false,
+ 'edit' => true,
+ 'type' => 'string',
+ 'length'=> 50,
+ 'values'=> NULL,
+ 'text' => 'Offsite Download URI',
+ 'required' => false,
+ 'post' => true,
+ 'default' => NULL,
+ 'image' => false,
+ );
$this->fields = $fields;
}
return $this->fields;
Added: websites/pbidir.com/bibivu/slib/bbcode.php
Modified: websites/pbidir.com/bibivu/slib/cookies.php
===================================================================
--- websites/pbidir.com/bibivu/slib/cookies.php 2008-04-23 20:58:26 UTC (rev 1754)
+++ websites/pbidir.com/bibivu/slib/cookies.php 2008-04-24 12:02:47 UTC (rev 1755)
@@ -3,13 +3,13 @@
class cookies{
private $config;
- public function __contruct(){
+ public function __construct(){
$this->config['prefix'] = '';
$this->config['domain'] = '';
$this->config['expire'] = 0;
$this->config['path'] = '/';
$this->config['secure'] = false;
- $config =& load_class($config)->load_config('cookies')->get('cookies');
+ $config = load_class('config')->load_config('cookies')->get('cookies');
if(is_array($config)){
foreach($config as $key->$value){
$this->config[$key]=$value;
Modified: websites/pbidir.com/bibivu/tpl/pbidir/pbi.php
===================================================================
--- websites/pbidir.com/bibivu/tpl/pbidir/pbi.php 2008-04-23 20:58:26 UTC (rev 1754)
+++ websites/pbidir.com/bibivu/tpl/pbidir/pbi.php 2008-04-24 12:02:47 UTC (rev 1755)
@@ -1,124 +1,129 @@
-<script language="javascript" type="text/javascript">
-<!--
-var pbi_id = <?=$pbi['id']?>;
-<?php
-if($can_comment_delete){
- ?>var can_comment_delete = true;var delete_comment_uri = "<?=$delete_comment_uri?>";<?php
-} else {
- ?>var can_comment_delete = false;<?php
-}
-if($can_vote && $prev_vote>0){
- ?>var voted=<?=$prev_vote?>;<?php
-}
-?>
-
--->
-</script>
-<ul class="breadcrumbs">
- <li><a href="<?=$home_uri?>"><?=load_library('lang')->get('pbidir')?></a></li>
- <li><a href="<?=$category_uri?>/<?=$category['web_alias']?>"><?=$category['name']?></a></li>
- <li><?=$pbi['name']?></li>
-</ul>
-<div class="pbi_info">
-<?=$this->show('/pbidir/pbi_images');?>
-<table>
- <tbody>
- <tr class="highlight">
- <td><strong><?=load_library('lang')->get('pbi_vendor')?>:</strong></td>
- <td><a target="_blank" href="<?=$pbi['vendor_url']?>"><?=$pbi['vendor_name']?></a></td>
- </tr>
- <tr>
- <td><strong><?=load_library('lang')->get('pbi_avg_rate')?>:</strong></td>
- <td><div class="container_rating_bar"><div class="rating_bar" style="width: <?=$pbi['rating']*10?>px;"><?=$pbi['rating']?></div></div></td>
- </tr>
- <tr><?php
- if($can_vote){
- ?><td><strong><?=load_library('lang')->get('pbi_your_rate')?>:</strong></td><td>
- <div class="vote_box" onmouseout="updateVote(0);"><?php
- for($i=1; $i<=10; $i++){
- ?><div onmouseover="updateVote(<?=$i?>)" class="vote_vote <?=$i<=$prev_vote?'vote_selected_back':''?> <?=$i==$prev_vote?'vote_selected':''?>" id="vote_<?=$i?>" ><a href="javascript:void(0);" onclick="saveVote(<?=$pbi['id']?>,<?=$i?>)" ><?=$i==10 && $prev_vote>0?$prev_vote:' '?></a></div><?php
- }
- ?>
- </div>
- </td><?php
- } elseif($is_logged){
- ?><td colspan="2"><?=load_library('lang')->get('pbi_cannot_vote')?></td><?php
- } else {
- ?><td colspan="2"><?=sprintf(load_library('lang')->get('pbi_login_to_vote'),$login_uri)?></td><?php
- } ?>
- </tr>
- <tr class="highlight">
- <td><strong><?=load_library('lang')->get('pbi_downloads')?>:</strong></td>
- <td><?=load_library('format')->number_format($pbi['total_download'])?></td>
- </tr>
- <tr>
- <td><strong><?=load_library('lang')->get('pbi_added')?>:</strong></td>
- <td><?=load_library('format')->date($pbi['date_added'])?></td>
- </tr>
- <tr class="highlight">
- <td><strong><?=load_library('lang')->get('pbi_licence')?>:</strong></td>
- <td><?=$pbi['licence']?></td>
- </tr><?php
- if($pbi['contributor_email'].$pbi['contributor_name']!=''){
- ?><tr>
- <td><strong><?=load_library('lang')->get('pbi_maintainer')?>:</strong></td>
- <td><script type="text/javascript" language="javascript">mailprotect ('<?=strtok($pbi['contributor_email'],'@')?>', '<?=strtok('.')?>', '<?=strtok('')?>', '<?=htmlentities($pbi['contributor_name'])?>')</script></td>
- </tr><?php
- } ?>
- </tbody>
-</table><?php
- if($pbi['alternative_for']!=''){
- ?><hr /><div id="alternative_pbi"><?=load_library('lang')->get('pbi_alternative')?>: <?=$pbi['alternative_for']?></div><?php
- }
- if($is_logged){
- ?><hr /><div id="subscribe_pbi"><a href="javascript:void(0);" onclick="subscribe_pbi('<?=$subscribe_uri?>');"><?=load_library('lang')->get($is_subscribed?'pbi_unsubscribe':'pbi_subscribe')?></a></div><?php
- } ?>
-</div>
-<div class="pbi_title">
-<h1><?php
-if($pbi['icon']!=''){
- ?><img src="<?=$pbi['icon']?>" alt="icon" title="icon" class="pbi_icon" /><?php
-}
-?><?=$pbi['name']?></h1><?php
-if($can_write){
- ?><a href="<?=load_class('uri')->create_uri(array(CLASS_KEY=>'admin', TASK_KEY=>'pbi','view'=>'','ajax'=>'', 'id'=>$pbi['id']))?>" class="divBox"><input type="button" value=" Edit This PBI " class="button edit divBox" /></a><?php
-} ?></div>
-<?php
-if($pbi['use_wine']=='y'){
- ?><img src="/bibivu/tpl/pbidir/images/pbi/icon_wine.png" alt="<?=load_library('lang')->get('pbi_use_wine')?>" title="<?=load_library('lang')->get('pbi_use_wine')?>" class="pbi_legend" /><?php
-}
-if($pbi['alternative_for']!=''){
- ?><img src="/bibivu/tpl/pbidir/images/pbi/icon_windows.gif" alt="<?=load_library('lang')->get('pbi_alternative_for_windows_package')?>" title="<?=load_library('lang')->get('pbi_alternative_for_windows_package')?>" class="pbi_legend" /><?php
-}
-switch($pbi['interface']){
- case 'g':
- ?><img src="/bibivu/tpl/pbidir/images/pbi/icon_gui.gif" alt="<?=load_library('lang')->get('pbi_graphical_interface')?>" title="<?=load_library('lang')->get('pbi_graphical_interface')?>" class="pbi_legend" /><?php
- break;
- case 'w':
- ?><img src="/bibivu/tpl/pbidir/images/pbi/icon_web.png" alt="<?=load_library('lang')->get('pbi_web_interface')?>" title="<?=load_library('lang')->get('pbi_web_interface')?>" class="pbi_legend" /><?php
- break;
- case 'c':
- ?><img src="/bibivu/tpl/pbidir/images/pbi/icon_konsole.png" alt="<?=load_library('lang')->get('pbi_command_line_interface')?>" title="<?=load_library('lang')->get('pbi_command_line_interface')?>" class="pbi_legend" /><?php
- break;
-}
-?>
-<div class="pbi_description">
-<h2><?=load_library('lang')->get('pbi_description')?></h2>
-<?=nl2br($pbi['description'])?>
-</div>
-<?=$this->show('pbidir/pbi_versions')?>
-<div class="separ_comment">
-<hr/></div>
-<?php
-if(!$can_comment){
- if($is_logged){
- echo load_library('lang')->get('pbi_cannot_comment');
- } else {
- echo sprintf(load_library('lang')->get('pbi_login_to_comment'),$login_uri);
- }
-} else {
- ?><div id="comment_form_div"><a href="javascript:void(0);" id="add_comment_link" onclick="load_comment_form('<?=$comment_form_uri?>')"><?=load_library('lang')->get('pbi_leave_comment')?></a></div><?php
-}
-?>
-<div id="comment_list"> </div>
+<script language="javascript" type="text/javascript">
+<!--
+var pbi_id = <?=$pbi['id']?>;
+<?php
+if($can_comment_delete){
+ ?>var can_comment_delete = true;var delete_comment_uri = "<?=$delete_comment_uri?>";<?php
+} else {
+ ?>var can_comment_delete = false;<?php
+}
+if($can_vote && $prev_vote>0){
+ ?>var voted=<?=$prev_vote?>;<?php
+}
+?>
+
+-->
+</script>
+<ul class="breadcrumbs">
+ <li><a href="<?=$home_uri?>"><?=load_library('lang')->get('pbidir')?></a></li>
+ <li><a href="<?=$category_uri?>/<?=$category['web_alias']?>"><?=$category['name']?></a></li>
+ <li><?=$pbi['name']?></li>
+</ul>
+<div class="pbi_info">
+<?=$this->show('/pbidir/pbi_images');?>
+<table>
+ <tbody>
+ <tr class="highlight">
+ <td><strong><?=load_library('lang')->get('pbi_vendor')?>:</strong></td>
+ <td><a target="_blank" href="<?=$pbi['vendor_url']?>"><?=$pbi['vendor_name']?></a></td>
+ </tr>
+ <tr>
+ <td><strong><?=load_library('lang')->get('pbi_avg_rate')?>:</strong></td>
+ <td><div class="container_rating_bar"><div class="rating_bar" style="width: <?=$pbi['rating']*10?>px;"><?=$pbi['rating']?></div></div></td>
+ </tr>
+ <tr><?php
+ if($can_vote){
+ ?><td><strong><?=load_library('lang')->get('pbi_your_rate')?>:</strong></td><td>
+ <div class="vote_box" onmouseout="updateVote(0);"><?php
+ for($i=1; $i<=10; $i++){
+ ?><div onmouseover="updateVote(<?=$i?>)" class="vote_vote <?=$i<=$prev_vote?'vote_selected_back':''?> <?=$i==$prev_vote?'vote_selected':''?>" id="vote_<?=$i?>" ><a href="javascript:void(0);" onclick="saveVote(<?=$pbi['id']?>,<?=$i?>)" ><?=$i==10 && $prev_vote>0?$prev_vote:' '?></a></div><?php
+ }
+ ?>
+ </div>
+ </td><?php
+ } elseif($is_logged){
+ ?><td colspan="2"><?=load_library('lang')->get('pbi_cannot_vote')?></td><?php
+ } else {
+ ?><td colspan="2"><?=sprintf(load_library('lang')->get('pbi_login_to_vote'),$login_uri)?></td><?php
+ } ?>
+ </tr>
+ <tr class="highlight">
+ <td><strong><?=load_library('lang')->get('pbi_downloads')?>:</strong></td>
+ <td><?=load_library('format')->number_format($pbi['total_download'])?></td>
+ </tr>
+ <tr>
+ <td><strong><?=load_library('lang')->get('pbi_added')?>:</strong></td>
+ <td><?=load_library('format')->date($pbi['date_added'])?></td>
+ </tr>
+ <tr class="highlight">
+ <td><strong><?=load_library('lang')->get('pbi_licence')?>:</strong></td>
+ <td><?=$pbi['licence']?></td>
+ </tr><?php
+ if($pbi['contributor_email'].$pbi['contributor_name']!=''){
+ ?><tr>
+ <td><strong><?=load_library('lang')->get('pbi_maintainer')?>:</strong></td>
+ <td><script type="text/javascript" language="javascript">mailprotect ('<?=strtok($pbi['contributor_email'],'@')?>', '<?=strtok('.')?>', '<?=strtok('')?>', '<?=htmlentities($pbi['contributor_name'])?>')</script></td>
+ </tr><?php
+ } ?>
+ </tbody>
+</table><?php
+ if($pbi['alternative_for']!=''){
+ ?><hr /><div id="alternative_pbi"><?=load_library('lang')->get('pbi_alternative')?>: <?=$pbi['alternative_for']?></div><?php
+ }
+ if($is_logged){
+ ?><hr /><div id="subscribe_pbi"><a href="javascript:void(0);" onclick="subscribe_pbi('<?=$subscribe_uri?>');"><?=load_library('lang')->get($is_subscribed?'pbi_unsubscribe':'pbi_subscribe')?></a></div><?php
+ } ?>
+</div>
+<div class="pbi_title">
+<h1><?php
+if($pbi['icon']!=''){
+ ?><img src="<?=$pbi['icon']?>" alt="icon" title="icon" class="pbi_icon" /><?php
+}
+?><?=$pbi['name']?></h1><?php
+if($can_write){
+ ?><a href="<?=load_class('uri')->create_uri(array(CLASS_KEY=>'admin', TASK_KEY=>'pbi','view'=>'','ajax'=>'', 'id'=>$pbi['id']))?>" class="divBox"><input type="button" value=" Edit This PBI " class="button edit divBox" /></a><?php
+} ?></div>
+<?php
+if($pbi['use_wine']=='y'){
+ ?><img src="/bibivu/tpl/pbidir/images/pbi/icon_wine.png" alt="<?=load_library('lang')->get('pbi_use_wine')?>" title="<?=load_library('lang')->get('pbi_use_wine')?>" class="pbi_legend" /><?php
+}
+if($pbi['alternative_for']!=''){
+ ?><img src="/bibivu/tpl/pbidir/images/pbi/icon_windows.gif" alt="<?=load_library('lang')->get('pbi_alternative_for_windows_package')?>" title="<?=load_library('lang')->get('pbi_alternative_for_windows_package')?>" class="pbi_legend" /><?php
+}
+switch($pbi['interface']){
+ case 'g':
+ ?><img src="/bibivu/tpl/pbidir/images/pbi/icon_gui.gif" alt="<?=load_library('lang')->get('pbi_graphical_interface')?>" title="<?=load_library('lang')->get('pbi_graphical_interface')?>" class="pbi_legend" /><?php
+ break;
+ case 'w':
+ ?><img src="/bibivu/tpl/pbidir/images/pbi/icon_web.png" alt="<?=load_library('lang')->get('pbi_web_interface')?>" title="<?=load_library('lang')->get('pbi_web_interface')?>" class="pbi_legend" /><?php
+ break;
+ case 'c':
+ ?><img src="/bibivu/tpl/pbidir/images/pbi/icon_konsole.png" alt="<?=load_library('lang')->get('pbi_command_line_interface')?>" title="<?=load_library('lang')->get('pbi_command_line_interface')?>" class="pbi_legend" /><?php
+ break;
+}
+?>
+<div class="pbi_description">
+<h2><?=load_library('lang')->get('pbi_description')?></h2>
+<?=nl2br(load_library('bbcode')->parse($pbi['description']))?>
+<?php
+if($pbi['offsite_download_url']!=''){
+ ?><br /><br /><h2><?=load_library('lang')->get('pbi_offsite_download')?></h2>
+ <a href="<?=$pbi['offsite_download_url']?>" target="_blank"><?=$pbi['offsite_download_url']?></a><?php
+}
+?></div>
+<?=$this->show('pbidir/pbi_versions')?>
+<div class="separ_comment">
+<hr/></div>
+<?php
+if(!$can_comment){
+ if($is_logged){
+ echo load_library('lang')->get('pbi_cannot_comment');
+ } else {
+ echo sprintf(load_library('lang')->get('pbi_login_to_comment'),$login_uri);
+ }
+} else {
+ ?><div id="comment_form_div"><a href="javascript:void(0);" id="add_comment_link" onclick="load_comment_form('<?=$comment_form_uri?>')"><?=load_library('lang')->get('pbi_leave_comment')?></a></div><?php
+}
+?>
+<div id="comment_list"> </div>
<?=$this->show('pbidir/comment/list')?>
\ No newline at end of file
Added: websites/pbidir.com/robots.txt
More information about the Commits
mailing list