mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
Stikkedizr QR and paste time fix
Fix qr image on the paste page, additional fix of the paste time (missing language definition)
This commit is contained in:
parent
ff87b46dd8
commit
11e738fb04
@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
<?php echo validation_errors(); ?>
|
<?php echo validation_errors(); ?>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -93,14 +93,13 @@
|
|||||||
<?php
|
<?php
|
||||||
$expire_extra = 'id="expire" class="form-control select" tabindex="7"';
|
$expire_extra = 'id="expire" class="form-control select" tabindex="7"';
|
||||||
$options = array(
|
$options = array(
|
||||||
"0" => lang('exp_forever'),
|
"burn" => lang('exp_burn'),
|
||||||
"30" => lang('exp_30min'),
|
"5" => lang('exp_5min'),
|
||||||
"60" => lang('exp_1h'),
|
"60" => lang('exp_1h'),
|
||||||
"360" => lang('exp_6h'),
|
|
||||||
"720" => lang('exp_12h'),
|
|
||||||
"1440" => lang('exp_1d'),
|
"1440" => lang('exp_1d'),
|
||||||
"10080" => lang('exp_1w'),
|
"10080" => lang('exp_1w'),
|
||||||
"40320" => lang('exp_4w'),
|
"40320" => lang('exp_1m'),
|
||||||
|
"483840" => lang('exp_1y'),
|
||||||
);
|
);
|
||||||
echo form_dropdown('expire', $options, $expire_set, $expire_extra); ?>
|
echo form_dropdown('expire', $options, $expire_set, $expire_extra); ?>
|
||||||
</div>
|
</div>
|
||||||
|
14
htdocs/themes/stikkedizr/views/view/qr.php
Normal file
14
htdocs/themes/stikkedizr/views/view/qr.php
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Class and Function List:
|
||||||
|
* Function list:
|
||||||
|
* Classes list:
|
||||||
|
*/
|
||||||
|
require_once ('./application/libraries/phpqrcode/qrlib.php');
|
||||||
|
$qrurl = $url;
|
||||||
|
|
||||||
|
if ($snipurl != false)
|
||||||
|
{
|
||||||
|
$qrurl = $snipurl;
|
||||||
|
}
|
||||||
|
QRcode::png($qrurl);
|
@ -1,4 +1,4 @@
|
|||||||
<?php $this->load->view('defaults/header');
|
<?php $this->load->view('defaults/header');
|
||||||
|
|
||||||
$seg3 = $this->uri->segment(3);
|
$seg3 = $this->uri->segment(3);
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ if(isset($insert)){
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 col-sm-12 col-lg-4">
|
<div class="col-4 col-sm-12 col-lg-4">
|
||||||
<img src="<?php echo site_url('static/qr/' . $pid . '.png'); ?>">
|
<img src="<?php echo site_url('static/qr/' . $pid ); ?>">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user