Skip to content

Commit 73231ae

Browse files
committed
Removed mcrypt, fixed rawmedia, replaced Youtube Api class and simplified it
1 parent d81ba24 commit 73231ae

18 files changed

+1156
-1291
lines changed

app/classes/class.providers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ function get_details()
603603
case 'youtube':
604604
if (!nullval(get_option('youtubekey', null)))
605605
{
606-
$yt = new Youtube(array(
606+
$yt = new YoutubeLite(array(
607607
'key' => get_option('youtubekey')
608608
));
609609
$id = $yt->parseVIdFromURL($this->link);

app/classes/class.youtube.php

Lines changed: 225 additions & 579 deletions
Large diffs are not rendered by default.

app/classes/ez_sql_core.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class ezSQLcore
3434
var $func_call = null;
3535
var $last_result = null;
3636
var $result = null;
37+
var $insert_id = null;
3738
var $from_disk_cache = null;
3839
var $num_rows = null;
3940
var $captured_errors = array();

app/functions/functions.global.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -362,12 +362,14 @@ function percent($first, $num_total, $precision = 0)
362362
//limit a string
363363
function _cut($str, $nb = 10)
364364
{
365-
if (strlen($str) > $nb) {
366-
if (extension_loaded('mbstring')) {
367-
mb_internal_encoding("UTF-8");
368-
$str = mb_substr($str, 0, $nb);
369-
} else {
370-
$str = substr($str, 0, $nb);
365+
if(not_empty($str)){
366+
if (strlen($str) > $nb) {
367+
if (extension_loaded('mbstring')) {
368+
mb_internal_encoding("UTF-8");
369+
$str = mb_substr($str, 0, $nb);
370+
} else {
371+
$str = substr($str, 0, $nb);
372+
}
371373
}
372374
}
373375
return $str;

app/functions/functions.permalinks.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ function nice_url($iniurl) {
6868
// New
6969
function url_translate($text)
7070
{
71+
72+
if(is_empty($text)) {return '';}
7173
// Generate a SEF URL from a given text
7274
$chset= "UTF-8";
7375
$txt= "UTF-8";
@@ -180,6 +182,7 @@ function url_translate($text)
180182

181183

182184
function brute_url_translate($string) {
185+
if(is_empty($string)) {return '';}
183186
$specialchars = array(
184187
// Latin
185188
'À' => 'A', 'Á' => 'A', 'Â' => 'A', 'Ã' => 'A', 'Ä' => 'A', 'Å' => 'A', 'Æ' => 'AE', 'Ç' => 'C',
@@ -267,6 +270,7 @@ function brute_url_translate($string) {
267270
'ç' => 'c', 'ə' => 'e', 'ğ' => 'g', 'ı' => 'i', 'ö' => 'o', 'ş' => 's', 'ü' => 'u',
268271
'Ç' => 'C', 'Ə' => 'E', 'Ğ' => 'G', 'İ' => 'I', 'Ö' => 'O', 'Ş' => 'S', 'Ü' => 'U'
269272
);
273+
270274
$url = strtr($string,$specialchars);
271275

272276
$url = strip_punctuation(strtolower($url));

0 commit comments

Comments
 (0)