we support swiss german ;)

This commit is contained in:
Claude 2013-04-14 18:36:06 +02:00
parent 28c64ab8c9
commit f6bdbbe307
15 changed files with 208 additions and 35 deletions

View File

@ -96,7 +96,7 @@ $autoload['config'] = array('stikked');
| |
*/ */
$autoload['language'] = array(); $autoload['language'] = array('stikked');
/* /*

View File

@ -69,7 +69,7 @@ $config['url_suffix'] = '';
| than english. | than english.
| |
*/ */
$config['language'] = 'english'; $config['language'] = 'swissgerman';
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

View File

@ -239,7 +239,6 @@ class Main extends CI_Controller
$this->dbforge->add_key('hits_updated'); $this->dbforge->add_key('hits_updated');
$this->dbforge->add_column('pastes', $fields); $this->dbforge->add_column('pastes', $fields);
} }
$this->lang->load('stikked', 'english');
} }
function _form_prep($lang = false, $title = '', $paste = '', $reply = false) function _form_prep($lang = false, $title = '', $paste = '', $reply = false)
@ -605,7 +604,7 @@ class Main extends CI_Controller
$ip_firstpart = $ip[0] . '.' . $ip[1] . '.'; $ip_firstpart = $ip[0] . '.' . $ip[1] . '.';
//setup message //setup message
$this->form_validation->set_message('_valid_ip', 'You are not allowed to paste.'); $this->form_validation->set_message('_valid_ip', lang('not_allowed'));
//lookup //lookup
$this->db->select('ip_address, spam_attempts'); $this->db->select('ip_address, spam_attempts');

View File

@ -17,6 +17,28 @@ $lang['paste_private'] = 'Private';
$lang['paste_private_desc'] = 'Private paste aren\'t shown in recent listings.'; $lang['paste_private_desc'] = 'Private paste aren\'t shown in recent listings.';
$lang['paste_delete'] = 'Delete After'; $lang['paste_delete'] = 'Delete After';
$lang['paste_delete_desc'] = 'When should we delete your paste?'; $lang['paste_delete_desc'] = 'When should we delete your paste?';
$lang['paste_trending'] = 'Trending Pastes';
$lang['paste_from'] = 'From';
$lang['paste_ago'] = 'ago';
$lang['paste_writtenin'] = 'written in';
$lang['paste_viewed'] = 'viewed';
$lang['paste_times'] = 'times';
$lang['paste_isareply'] = 'This paste is a reply to';
$lang['paste_viewdiff'] = 'view diff';
$lang['paste_viewdiffs'] = 'Viewing differences between';
$lang['paste_goback'] = 'go back';
$lang['paste_url'] = 'URL';
$lang['paste_shorturl'] = 'Shorturl';
$lang['paste_embed'] = 'Embed';
$lang['paste_download'] = 'Download Paste';
$lang['paste_or'] = 'or';
$lang['paste_and'] = 'and';
$lang['paste_viewraw'] = 'View Raw';
$lang['paste_expand'] = 'Expand Paste';
$lang['paste_fullwidth'] = 'to full width of browser';
$lang['paste_replies'] = 'Replies to';
$lang['paste_replyto'] = 'Reply to';
$lang['paste_replyto_desc'] = 'Here you can reply to the paste above';
$lang['exp_forever'] = 'Keep Forever'; $lang['exp_forever'] = 'Keep Forever';
$lang['exp_30min'] = '30 Minutes'; $lang['exp_30min'] = '30 Minutes';
$lang['exp_1h'] = '1 Hour'; $lang['exp_1h'] = '1 Hour';

View File

@ -0,0 +1,61 @@
<?php
$lang['date_year'] = "Johr";
$lang['date_years'] = "Johr";
$lang['date_month'] = "Monet";
$lang['date_months'] = "Mönet";
$lang['date_week'] = "Wuchä";
$lang['date_weeks'] = "Wuchä";
$lang['date_day'] = "Daag";
$lang['date_days'] = "Dääg";
$lang['date_hour'] = "Stündli";
$lang['date_hours'] = "Stundä";
$lang['date_minute'] = "Minuttä";
$lang['date_minutes'] = "Minuttä";
$lang['date_second'] = "Sekundä";
$lang['date_seconds'] = "Sekundä";
$lang['UM12'] = '(UTC -12:00) Baker/Howland Island';
$lang['UM11'] = '(UTC -11:00) Samoa Time Zone, Niue';
$lang['UM10'] = '(UTC -10:00) Hawaii-Aleutian Standard Time, Cook Islands, Tahiti';
$lang['UM95'] = '(UTC -9:30) Marquesas Islands';
$lang['UM9'] = '(UTC -9:00) Alaska Standard Time, Gambier Islands';
$lang['UM8'] = '(UTC -8:00) Pacific Standard Time, Clipperton Island';
$lang['UM7'] = '(UTC -7:00) Mountain Standard Time';
$lang['UM6'] = '(UTC -6:00) Central Standard Time';
$lang['UM5'] = '(UTC -5:00) Eastern Standard Time, Western Caribbean Standard Time';
$lang['UM45'] = '(UTC -4:30) Venezuelan Standard Time';
$lang['UM4'] = '(UTC -4:00) Atlantic Standard Time, Eastern Caribbean Standard Time';
$lang['UM35'] = '(UTC -3:30) Newfoundland Standard Time';
$lang['UM3'] = '(UTC -3:00) Argentina, Brazil, French Guiana, Uruguay';
$lang['UM2'] = '(UTC -2:00) South Georgia/South Sandwich Islands';
$lang['UM1'] = '(UTC -1:00) Azores, Cape Verde Islands';
$lang['UTC'] = '(UTC) Greenwich Mean Time, Western European Time';
$lang['UP1'] = '(UTC +1:00) Central European Time, West Africa Time';
$lang['UP2'] = '(UTC +2:00) Central Africa Time, Eastern European Time, Kaliningrad Time';
$lang['UP3'] = '(UTC +3:00) Moscow Time, East Africa Time';
$lang['UP35'] = '(UTC +3:30) Iran Standard Time';
$lang['UP4'] = '(UTC +4:00) Azerbaijan Standard Time, Samara Time';
$lang['UP45'] = '(UTC +4:30) Afghanistan';
$lang['UP5'] = '(UTC +5:00) Pakistan Standard Time, Yekaterinburg Time';
$lang['UP55'] = '(UTC +5:30) Indian Standard Time, Sri Lanka Time';
$lang['UP575'] = '(UTC +5:45) Nepal Time';
$lang['UP6'] = '(UTC +6:00) Bangladesh Standard Time, Bhutan Time, Omsk Time';
$lang['UP65'] = '(UTC +6:30) Cocos Islands, Myanmar';
$lang['UP7'] = '(UTC +7:00) Krasnoyarsk Time, Cambodia, Laos, Thailand, Vietnam';
$lang['UP8'] = '(UTC +8:00) Australian Western Standard Time, Beijing Time, Irkutsk Time';
$lang['UP875'] = '(UTC +8:45) Australian Central Western Standard Time';
$lang['UP9'] = '(UTC +9:00) Japan Standard Time, Korea Standard Time, Yakutsk Time';
$lang['UP95'] = '(UTC +9:30) Australian Central Standard Time';
$lang['UP10'] = '(UTC +10:00) Australian Eastern Standard Time, Vladivostok Time';
$lang['UP105'] = '(UTC +10:30) Lord Howe Island';
$lang['UP11'] = '(UTC +11:00) Magadan Time, Solomon Islands, Vanuatu';
$lang['UP115'] = '(UTC +11:30) Norfolk Island';
$lang['UP12'] = '(UTC +12:00) Fiji, Gilbert Islands, Kamchatka Time, New Zealand Standard Time';
$lang['UP1275'] = '(UTC +12:45) Chatham Islands Standard Time';
$lang['UP13'] = '(UTC +13:00) Phoenix Islands Time, Tonga';
$lang['UP14'] = '(UTC +14:00) Line Islands';
/* End of file date_lang.php */
/* Location: ./system/language/english/date_lang.php */

View File

@ -0,0 +1,30 @@
<?php
$lang['required'] = "S %s Fäld isch Pflicht.";
$lang['not_allowed'] = "Du dörfsch nümme paste. Ganz eifach.";
$lang['isset'] = "The %s field must have a value.";
$lang['valid_email'] = "The %s field must contain a valid email address.";
$lang['valid_emails'] = "The %s field must contain all valid email addresses.";
$lang['valid_url'] = "The %s field must contain a valid URL.";
$lang['valid_ip'] = "The %s field must contain a valid IP.";
$lang['min_length'] = "The %s field must be at least %s characters in length.";
$lang['max_length'] = "The %s field can not exceed %s characters in length.";
$lang['exact_length'] = "The %s field must be exactly %s characters in length.";
$lang['alpha'] = "The %s field may only contain alphabetical characters.";
$lang['alpha_numeric'] = "The %s field may only contain alpha-numeric characters.";
$lang['alpha_dash'] = "The %s field may only contain alpha-numeric characters, underscores, and dashes.";
$lang['numeric'] = "The %s field must contain only numbers.";
$lang['is_numeric'] = "The %s field must contain only numeric characters.";
$lang['integer'] = "The %s field must contain an integer.";
$lang['regex_match'] = "The %s field is not in the correct format.";
$lang['matches'] = "The %s field does not match the %s field.";
$lang['is_unique'] = "The %s field must contain a unique value.";
$lang['is_natural'] = "The %s field must contain only positive numbers.";
$lang['is_natural_no_zero'] = "The %s field must contain a number greater than zero.";
$lang['decimal'] = "The %s field must contain a decimal number.";
$lang['less_than'] = "The %s field must contain a number less than %s.";
$lang['greater_than'] = "The %s field must contain a number greater than %s.";
/* End of file form_validation_lang.php */
/* Location: ./system/language/english/form_validation_lang.php */

View File

@ -0,0 +1,67 @@
<?php
$lang['paste_create_new'] = 'Nöiä Paste erstellä';
$lang['paste_create_new_desc'] = 'Do chasch di saich veröffentliche';
$lang['paste_author'] = 'Autor';
$lang['paste_author_desc'] = 'Wie heissisch?';
$lang['paste_title'] = 'Diddel';
$lang['paste_title_desc'] = 'Muesch em e Diddel gäh.';
$lang['paste_lang'] = 'Sprooch';
$lang['paste_lang_desc'] = 'In welärä Sprooch isch das gschriibä?';
$lang['paste_yourpaste'] = 'Din Paste';
$lang['paste_yourpaste_desc'] = 'Gisch di Sänf derzue';
$lang['paste_syntaxhl'] = 'Ächtzyt syntax highlighting aaschalte (isch imfall geil!)';
$lang['paste_shorturl'] = 'Churz-URL erstellä';
$lang['paste_shorturl_desc'] = 'Chürzeri URL erstelle, damits noone bitzeli schööner usgseht';
$lang['paste_private'] = 'Privat';
$lang['paste_private_desc'] = 'Privati Pastes wärde nid im "Chürzlich" azeigt.';
$lang['paste_delete'] = 'Lösche nach';
$lang['paste_delete_desc'] = 'Wenn sölls explodiere?';
$lang['paste_recent'] = 'Die nöischtä Pastes';
$lang['paste_trending'] = 'Die beliäbtischtä Pastes';
$lang['paste_from'] = 'Vom';
$lang['paste_ago'] = 'vorhär';
$lang['paste_writtenin'] = 'gschriibä in';
$lang['paste_viewed'] = 'aagluegt';
$lang['paste_times'] = 'mol';
$lang['paste_isareply'] = 'Dä Paste isch e Antwort uf';
$lang['paste_viewdiff'] = 'Unterschied aazeigä';
$lang['paste_viewdiffs'] = 'Das sin d Unterschied zwüschä';
$lang['paste_goback'] = 'gang zrugg';
$lang['paste_url'] = 'URL';
$lang['paste_shorturl'] = 'Churzurl';
$lang['paste_embed'] = 'Ibettä';
$lang['paste_download'] = 'Paste abelade';
$lang['paste_or'] = 'odr';
$lang['paste_and'] = 'und';
$lang['paste_viewraw'] = 'Rohfassig aluegä';
$lang['paste_expand'] = 'Rahme spränge';
$lang['paste_fullwidth'] = 'bis zur volle Breiti vom Brauser';
$lang['paste_replies'] = 'Antworte uf';
$lang['paste_replyto'] = 'Antwort uf';
$lang['paste_replyto_desc'] = 'Weis es besser';
$lang['paste_missing'] = 'Git leider no nüt';
$lang['exp_forever'] = 'Gar nid';
$lang['exp_30min'] = '30 Minuttä';
$lang['exp_1h'] = '1 Stündli';
$lang['exp_6h'] = '5 Stund';
$lang['exp_12h'] = '12 Stund';
$lang['exp_1d'] = '1 Daag';
$lang['exp_1w'] = '1 Wuchä';
$lang['exp_4w'] = '4 Wuchä';
$lang['paste_create'] = 'Erstellä';
$lang['menu_create'] = 'Erstellä';
$lang['menu_create_title'] = 'Neue Paste erstellä';
$lang['menu_recent'] = 'Chürzlich';
$lang['menu_recent_title'] = 'Chürzlich erstellti Pastes';
$lang['menu_trending'] = 'Beliäbt';
$lang['menu_trending_title'] = 'Pastes mitere hoche Bsuecheranzahl';
$lang['menu_api'] = 'API';
$lang['menu_about'] = 'Übr';
$lang['table_title'] = 'Diddel';
$lang['table_name'] = 'Vom';
$lang['table_lang'] = 'Sprooch';
$lang['table_hits'] = 'Träffer';
$lang['table_time'] = 'Wenn';
$lang['powered_by'] = 'Dampfbetriebe mit ';

View File

@ -379,7 +379,7 @@ h4 {
.detail .item { .detail .item {
color: #333; color: #333;
width: 50px; width: 60px;
display: block; display: block;
float: left; float: left;
} }

View File

@ -28,14 +28,14 @@
<td class="first"><a href="<?php echo site_url("view/".$paste['pid']); ?>"><?php echo $paste['title']; ?></a></td> <td class="first"><a href="<?php echo site_url("view/".$paste['pid']); ?>"><?php echo $paste['title']; ?></a></td>
<td><?php echo $paste['name']; ?></td> <td><?php echo $paste['name']; ?></td>
<td><?php echo $paste['lang']; ?></td> <td><?php echo $paste['lang']; ?></td>
<td><?php $p = explode(",", timespan($paste['created'], time())); echo $p[0]; ?> ago.</td> <td><?php $p = explode(",", timespan($paste['created'], time())); echo $p[0]; ?> <?php echo lang('paste_ago'); ?>.</td>
</tr> </tr>
<?php }?> <?php }?>
</tbody> </tbody>
</table> </table>
<?php } else { ?> <?php } else { ?>
<p>There have been no pastes :(</p> <p><?php echo lang('paste_missing'); ?> :(</p>
<?php }?> <?php }?>
<?php echo $pages; ?> <?php echo $pages; ?>
<div class="spacer"></div> <div class="spacer"></div>

View File

@ -38,7 +38,7 @@
</tbody> </tbody>
</table> </table>
<?php } else { ?> <?php } else { ?>
<p>There have been no pastes :(</p> <p><?php echo lang('paste_missing'); ?> :(</p>
<?php }?> <?php }?>
<?php echo $pages; ?> <?php echo $pages; ?>
<div class="spacer"></div> <div class="spacer"></div>

View File

@ -51,7 +51,7 @@
</tbody> </tbody>
</table> </table>
<?php } else { ?> <?php } else { ?>
<p class="clear">There have been no pastes :(</p> <p class="clear"><?php echo lang('paste_missing'); ?> :(</p>
<?php }?> <?php }?>
<?php echo $pages; ?> <?php echo $pages; ?>
<div class="spacer"></div> <div class="spacer"></div>

View File

@ -1,5 +1,5 @@
<?php $this->load->view('defaults/header');?> <?php $this->load->view('defaults/header');?>
<h1>Trending Pastes</h1> <h1><?php echo lang('paste_trending'); ?></h1>
<?php <?php
function checkNum($num){ function checkNum($num){
@ -30,14 +30,14 @@
<td><?php echo $paste['name']; ?></td> <td><?php echo $paste['name']; ?></td>
<td><?php echo $paste['lang']; ?></td> <td><?php echo $paste['lang']; ?></td>
<td><?php echo number_format($paste['hits'], 0, '.', "'"); ?></td> <td><?php echo number_format($paste['hits'], 0, '.', "'"); ?></td>
<td><?php $p = explode(",", timespan($paste['created'], time())); echo $p[0]; ?> ago.</td> <td><?php $p = explode(",", timespan($paste['created'], time())); echo $p[0]; ?> <?php echo lang('paste_ago'); ?>.</td>
</tr> </tr>
<?php }?> <?php }?>
</tbody> </tbody>
</table> </table>
<?php } else { ?> <?php } else { ?>
<p>There have been no pastes :(</p> <p><?php echo lang('paste_missing'); ?> :(</p>
<?php }?> <?php }?>
<?php echo $pages; ?> <?php echo $pages; ?>
<div class="spacer"></div> <div class="spacer"></div>

View File

@ -57,9 +57,6 @@ $this->carabiner->display('css');
<?php <?php
//stats
$this->load->view('defaults/stats');
?> ?>
<script> <script>
</script> </script>

View File

@ -16,31 +16,31 @@ if(isset($insert)){
<div class="info"> <div class="info">
<h1 class="pagetitle right"><?php echo $title; ?></h1> <h1 class="pagetitle right"><?php echo $title; ?></h1>
<div class="meta"> <div class="meta">
<span class="detail by">By <?php echo $name; ?>, <?php $p = explode(',', timespan($created, time())); echo $p[0]?> ago, written in <?php echo $lang; ?>, viewed <?php echo number_format($hits, 0, '.', "'"); ?> times.</span> <span class="detail by"><?php echo lang('paste_from'); ?> <?php echo $name; ?>, <?php $p = explode(',', timespan($created, time())); echo $p[0]?> <?php echo lang('paste_ago'); ?>, <?php echo lang('paste_writtenin'); ?> <?php echo $lang; ?>, <?php echo lang('paste_viewed'); ?> <?php echo number_format($hits, 0, '.', "'"); ?> <?php echo lang('paste_times'); ?>.</span>
<?php if(isset($inreply)){?><span class="detail by">This paste is a reply to <a href="<?php echo $inreply['url']?>"><?php echo $inreply['title']; ?></a> by <?php echo $inreply['name']; ?> <?php if(isset($inreply)){?><span class="detail by"><?php echo lang('paste_isareply'); ?> <a href="<?php echo $inreply['url']?>"><?php echo $inreply['title']; ?></a> <?php echo strtolower(lang('paste_from')); ?> <?php echo $inreply['name']; ?>
<?php if($seg3 != 'diff'){ ?> <?php if($seg3 != 'diff'){ ?>
- <a href="<?php echo $url . '/diff'; ?>">view diff</a> - <a href="<?php echo $url . '/diff'; ?>"><?php echo lang('paste_viewdiff'); ?></a>
<?php }else{ ?> <?php }else{ ?>
- <a href="<?php echo $url; ?>">go back</a> - <a href="<?php echo $url; ?>"><?php echo lang('paste_goback'); ?></a>
<?php } ?> <?php } ?>
</span><?php }?> </span><?php }?>
<div class="spacer"></div> <div class="spacer"></div>
<span class="detail"><span class="item">URL </span><a href="<?php echo $page_url; ?>"><?php echo $page_url; ?></a></span> <span class="detail"><span class="item"><?php echo lang('paste_url'); ?> </span><a href="<?php echo $page_url; ?>"><?php echo $page_url; ?></a></span>
<?php if(!empty($snipurl)){?> <?php if(!empty($snipurl)){?>
<span class="detail"><span class="item">Shorturl </span><a href="<?php echo $snipurl; ?>"><?php echo htmlspecialchars($snipurl) ?></a></span> <span class="detail"><span class="item"><?php echo lang('paste_shorturl'); ?> </span><a href="<?php echo $snipurl; ?>"><?php echo htmlspecialchars($snipurl) ?></a></span>
<?php }?> <?php }?>
<span class="detail"><span class="item">Embed </span><input id="embed_field" type="text" value="<?php echo htmlspecialchars('<iframe src="' . site_url('view/embed/' . $pid . '/' . $seg3) . '" style="border:none;width:100%"></iframe>'); ?>" /></span> <span class="detail"><span class="item"><?php echo lang('paste_embed'); ?> </span><input id="embed_field" type="text" value="<?php echo htmlspecialchars('<iframe src="' . site_url('view/embed/' . $pid . '/' . $seg3) . '" style="border:none;width:100%"></iframe>'); ?>" /></span>
<div class="spacer"></div> <div class="spacer"></div>
<span class="detail"> <span class="detail">
<?php if($seg3 != 'diff'){ ?> <?php if($seg3 != 'diff'){ ?>
<a class="control" href="<?php echo site_url("view/download/".$pid); ?>">Download Paste</a> or <a class="control" href="<?php echo site_url("view/raw/".$pid); ?>">View Raw</a> <a class="control" href="<?php echo site_url("view/download/".$pid); ?>"><?php echo lang('paste_download'); ?></a> <?php echo lang('paste_or'); ?> <a class="control" href="<?php echo site_url("view/raw/".$pid); ?>"><?php echo lang('paste_viewraw'); ?></a>
<?php }else{ ?> <?php }else{ ?>
Viewing differences between <a href="<?php echo $inreply['url']?>"><?php echo $inreply['title']; ?></a> and <a href="<?php echo $url; ?>"><?php echo $title; ?></a> <?php echo lang('paste_viewdiffs'); ?> <a href="<?php echo $inreply['url']?>"><?php echo $inreply['title']; ?></a> <?php echo lang('paste_and'); ?> <a href="<?php echo $url; ?>"><?php echo $title; ?></a>
<?php } ?> <?php } ?>
&mdash; <a href="#" class="expand control">Expand paste</a> to full width of browser</span> &mdash; <a href="#" class="expand control"><?php echo lang('paste_expand'); ?></a> <?php echo lang('paste_fullwidth'); ?></span>
</div> </div>
</div> </div>
</div> </div>
@ -71,14 +71,14 @@ if(isset($insert)){
if(isset($replies) and !empty($replies)){ if(isset($replies) and !empty($replies)){
$n = 1; $n = 1;
?> ?>
<h1>Replies to <?php echo $title; ?> <a href="<?php echo site_url('view/rss/' . $pid); ?>"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAJDSURBVHjajJJNSBRhGMd/887MzrQxRSLbFuYhoUhEKsMo8paHUKFLdBDrUIdunvq4RdClOq8Hb0FBSAVCUhFR1CGD/MrIJYqs1kLUXd382N356plZFOrUO/MMz/vO83+e93n+f+1zF+kQBoOQNLBJg0CTj7z/rvWjGbEOIwKp9O7WkhtQc/wMWrlIkP8Kc1lMS8eyFHpkpo5SgWCCVO7Z5JARhuz1Qg29fh87u6/9VWL1/SPc4Qy6n8c0FehiXin6dcCQaylDMhqGz8ydS2hKkmxNkWxowWnuBLHK6G2C8X6UJkBlxUmNqLYyNbzF74QLDrgFgh9LLE0NsPKxjW1Hz2EdPIubsOFdH2HgbwAlC4S19dT13o+3pS+vcSfvUcq9YnbwA6muW9hNpym/FWBxfh0CZkKGkPBZeJFhcWQAu6EN52QGZ/8prEKW+cdXq0039UiLXhUYzdjebOJQQI30UXp6mZn+Dtam32Afu0iyrgUvN0r+ZQbr8HncSpUVJfwRhBWC0hyGV8CxXBL5SWYf9sYBidYLIG2V87/ifVjTWAX6AlxeK2C0X8e58hOr/Qa2XJ3iLMWxB1h72tHs7bgryzHAN2o2gJorTrLxRHVazd0o4TXiyV2Yjs90uzauGvvppmqcLjwmbZ3V7BO2HOrBnbgrQRqWUgTZ5+Snx4WeKfzCCrmb3axODKNH+vvUyWjqyK4DiKQ0eXSpFsgVvLJQWpH+xSpr4otg/HI0TR/t97cxTUS+QxIMRTLi/9ZYJPI/AgwAoc3W7ZrqR2IAAAAASUVORK5CYII=" alt="rss" title="RSS" /></a></h1> <h1><?php echo lang('paste_replies'); ?> <?php echo $title; ?> <a href="<?php echo site_url('view/rss/' . $pid); ?>"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAJDSURBVHjajJJNSBRhGMd/887MzrQxRSLbFuYhoUhEKsMo8paHUKFLdBDrUIdunvq4RdClOq8Hb0FBSAVCUhFR1CGD/MrIJYqs1kLUXd382N356plZFOrUO/MMz/vO83+e93n+f+1zF+kQBoOQNLBJg0CTj7z/rvWjGbEOIwKp9O7WkhtQc/wMWrlIkP8Kc1lMS8eyFHpkpo5SgWCCVO7Z5JARhuz1Qg29fh87u6/9VWL1/SPc4Qy6n8c0FehiXin6dcCQaylDMhqGz8ydS2hKkmxNkWxowWnuBLHK6G2C8X6UJkBlxUmNqLYyNbzF74QLDrgFgh9LLE0NsPKxjW1Hz2EdPIubsOFdH2HgbwAlC4S19dT13o+3pS+vcSfvUcq9YnbwA6muW9hNpym/FWBxfh0CZkKGkPBZeJFhcWQAu6EN52QGZ/8prEKW+cdXq0039UiLXhUYzdjebOJQQI30UXp6mZn+Dtam32Afu0iyrgUvN0r+ZQbr8HncSpUVJfwRhBWC0hyGV8CxXBL5SWYf9sYBidYLIG2V87/ifVjTWAX6AlxeK2C0X8e58hOr/Qa2XJ3iLMWxB1h72tHs7bgryzHAN2o2gJorTrLxRHVazd0o4TXiyV2Yjs90uzauGvvppmqcLjwmbZ3V7BO2HOrBnbgrQRqWUgTZ5+Snx4WeKfzCCrmb3axODKNH+vvUyWjqyK4DiKQ0eXSpFsgVvLJQWpH+xSpr4otg/HI0TR/t97cxTUS+QxIMRTLi/9ZYJPI/AgwAoc3W7ZrqR2IAAAAASUVORK5CYII=" alt="rss" title="RSS" /></a></h1>
<table class="recent"> <table class="recent">
<tbody> <tbody>
<tr> <tr>
<th class="title">Title</th> <th class="title"><?php echo lang('table_title'); ?></th>
<th class="name">Name</th> <th class="name"><?php echo lang('table_name'); ?></th>
<th class="time">When</th> <th class="time"><?php echo lang('table_time'); ?></th>
</tr> </tr>
<?php foreach($replies as $reply){ <?php foreach($replies as $reply){
@ -93,7 +93,7 @@ if(isset($insert)){
<tr class="<?php echo $eo; ?>"> <tr class="<?php echo $eo; ?>">
<td class="first"><a href="<?php echo site_url("view/".$reply['pid']); ?>"><?php echo $reply['title']; ?></a></td> <td class="first"><a href="<?php echo site_url("view/".$reply['pid']); ?>"><?php echo $reply['title']; ?></a></td>
<td><?php echo $reply['name']; ?></td> <td><?php echo $reply['name']; ?></td>
<td><?php $p = explode(",", timespan($reply['created'], time())); echo $p[0];?> ago.</td> <td><?php $p = explode(",", timespan($reply['created'], time())); echo $p[0];?> <?php echo lang('paste_ago'); ?>.</td>
</tr> </tr>
<?php }?> <?php }?>
@ -104,8 +104,8 @@ if(isset($insert)){
<?php }?> <?php }?>
<?php <?php
$reply_form['page']['title'] = "Reply to \"$title\""; $reply_form['page']['title'] = lang('paste_replyto') . ' "' . $title . '"';
$reply_form['page']['instructions'] = 'Here you can reply to the paste above'; $reply_form['page']['instructions'] = lang('paste_replyto_desc');
$this->load->view('defaults/paste_form', $reply_form); ?> $this->load->view('defaults/paste_form', $reply_form); ?>
</div> </div>

View File

@ -4,9 +4,6 @@
//codemirror modes //codemirror modes
echo '<div style="display: none;" id="codemirror_modes">' . json_encode($codemirror_modes) . '</div>'; echo '<div style="display: none;" id="codemirror_modes">' . json_encode($codemirror_modes) . '</div>';
//stats
$this->load->view('defaults/stats');
//Javascript //Javascript
$this->carabiner->js('jquery.js'); $this->carabiner->js('jquery.js');
$this->carabiner->js('jquery.timers.js'); $this->carabiner->js('jquery.timers.js');