Skip to content

Commit de44ad5

Browse files
committed
Upgrade to 0.45
- Reduced load - Customized Sidebar - Removed var dump from css list
1 parent c26f69f commit de44ad5

File tree

11 files changed

+300
-271
lines changed

11 files changed

+300
-271
lines changed

app/classes/ez_sql_core.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,6 @@ function clean_cache($full=false) {
551551
/* Remove css cache */
552552
$csslist = glob($css_dir."{*.css*}", GLOB_BRACE);
553553
if($csslist) {
554-
var_dump($csslist);
555554
foreach ($csslist as $filename) {
556555
if($filename){
557556
if(!is_dir($filename) && (( strpos($filename,'index.html') == false) || ( strpos($filename,'htaccess') == false) )) {

app/functions/functions.global.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1544,30 +1544,6 @@ function the_embed()
15441544
}
15451545
}
15461546

1547-
function lang_menu()
1548-
{
1549-
global $cachedb;
1550-
$row = $cachedb->get_results("SELECT `lang_code`, `lang_name` FROM " . DB_PREFIX . "languages order by `lang_name` asc LIMIT 0,100");
1551-
$menu = '';
1552-
$cr = '';
1553-
if ($row) {
1554-
$menu .= '<h4 class="li-heading mtop10">
1555-
' . _lang('Site language') . '
1556-
</h4>
1557-
<div class="sidebar-nav blc"><ul>';
1558-
foreach ($row as $l) {
1559-
if ($l->lang_code == current_lang()) {
1560-
$cr = $l->lang_name;
1561-
$ico = '<i class="material-icons">gps_fixed</i>';
1562-
} else {
1563-
$ico = '<i class="material-icons">gps_not_fixed</i>';
1564-
}
1565-
$menu .= '<li><a rel="nofollow" href="' . canonical() . '?clang=' . $l->lang_code . '"><span class="iconed">' . $ico . '</span> ' . $l->lang_name . '</a></li>';
1566-
}
1567-
$menu .= '</ul></div>';
1568-
}
1569-
return $menu;
1570-
}
15711547

15721548
function u_k($nr)
15731549
{

app/minify/css.php

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
<?php error_reporting(0);
2-
// Root
1+
<?php error_reporting(E_ALL);
2+
// Security
3+
if (!defined('in_phpvibe'))
4+
define('in_phpvibe', true);
5+
// Root
36
if( !defined( 'ABSPATH' ) )$abs = str_replace( array('\\', '/app/minify'),array( '/',''), dirname( __FILE__ ) );
4-
define( 'ABSPATH', $abs );
5-
/* $full_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; */
6-
$full_link = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
7-
$uri_parts = explode('css.php', $full_link, 2);
8-
$site_link = $uri_parts[0];$site_link = str_replace('app/minify/', '', $site_link);
7+
define( 'ABSPATH', $abs );
8+
//Include configuration
9+
require_once(ABSPATH . '/vibe_config.php');
10+
$site_link = SITE_URL;
911
$themefold = isset($_GET['t']) ? $_GET['t'] : "main";
1012
$themefold = preg_replace('/(\.+\/)/','',$themefold);
1113
$txt = '';
@@ -25,7 +27,7 @@
2527
// Set the correct MIME type, because Apache won't set it for us
2628
header("Content-type: text/css");
2729
header('Pragma: public');
28-
// Write everything out
30+
// Write everything out
2931
readfile($cachedfile);
3032

3133
/* $txt = file_get_contents($cachedfile); echo $txt; */
@@ -59,7 +61,8 @@
5961
$txt = preg_replace( '/(\/\*[\w\'\s\r\n\*\+\,\"\-\.]*\*\/)/', '$2', $txt );
6062
//A fix
6163
$txt = str_replace('and(', 'and (', $txt);
62-
$txt = "/* PHPVibe CMS | Copyright PHPVibe.com */ ".$txt;
64+
// Signature
65+
$txt = "/* Powered by the PHPVibe CMS ( PHPVibe.com ) */ ".$txt;
6366

6467

6568
// Create cache file

app/minify/js.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
// Set the correct MIME type, because Apache won't set it for us
3232
header("Content-Type: application/javascript");
3333
// Start the css
34-
echo('/* PHPVibe CMS:: Javascript */');
34+
echo('/* Powered by the PHPVibe CMS ( PHPVibe.com ) */');
3535
/* Cache file */
3636
$cachexists= false;
3737
$cachedfile = $cachef.'storage/minify/js-combined.js';

moderator/phpvibe.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"software":"PHPVibe","major_version":"11","subversion":"0.44","release_type":"beta","fullversion":"11.0.44", "release_date":"28.12.2023"}
1+
{"software":"PHPVibe","major_version":"11","subversion":"0.45","release_type":"beta","fullversion":"11.0.45", "release_date":"30.12.2023"}

themes/main/profile.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@
117117
<?php } ?>
118118

119119
<?php if($myself ) { ?>
120-
<li class="<?php echo aTab("activity");?>"><a href="<?php echo $canonical; ?>?sk=activity"><?php echo _lang("Activity"); ?></a></li>
120+
<li class="<?php echo aTab("activity");?>"><a href="<?php echo $canonical; ?>?sk=activity"><?php echo _lang("Activity"); ?></a></li>
121+
<li class="<?php echo aTab("activity");?>"><a href="<?php echo $canonical; ?>?sk=subscribed"><?php echo _lang("Following"); ?></a></li>
122+
<li class="<?php echo aTab("activity");?>"><a href="<?php echo $canonical; ?>?sk=subscribers"><?php echo _lang("Followers"); ?></a></li>
121123
<?php } ?>
122124
</ul>
123125
</nav>

themes/main/scripts/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ $("#insertChat").emojioneArea({
453453
//Show more desc
454454
$('#media-description').readmore({
455455
speed: 75,
456-
collapsedHeight: 80,
456+
collapsedHeight: 40,
457457
moreLink: '<a href="#" class="readmore">'+ $('#media-description').data("small") +' <i class="material-icons">&#xE313;</i></a>',
458458
lessLink: '<a href="#" class="readmore">'+ $('#media-description').data("big") +' <i class="material-icons">&#xE316;</i></a>'
459459
});

0 commit comments

Comments
 (0)