causefx 8 年 前
コミット
43af5c87bb
2 ファイル変更4 行追加13 行削除
  1. 2 1
      ajax.php
  2. 2 12
      index.php

+ 2 - 1
ajax.php

@@ -145,7 +145,8 @@ switch ($_SERVER['REQUEST_METHOD']) {
                         sendNotification(true);
                         break;
                     case 'update-config':
-                        sendNotification(updateConfig($_POST));
+						$response['notify'] = sendNotification(updateConfig($_POST));
+						$response['show_apply'] = true;
                         break;
                     case 'update-appearance':
                         // Custom CSS Special Case START

+ 2 - 12
index.php

@@ -1,4 +1,4 @@
-<?php 
+<?php
 // Include functions if not already included
 require_once('functions.php');
 
@@ -144,20 +144,10 @@ if (file_exists('config/config.php')) {
 	endif;
 
 	$userpic = md5( strtolower( trim( $USER->email ) ) );
+	$showPic = "<i class=\"mdi mdi-account-circle\"></i>";
 	if(LOADINGICON !== "") : $loadingIcon = LOADINGICON; endif;
-
 	if(SLIMBAR == "true") : $slimBar = "30"; $userSize = "25"; else : $slimBar = "56"; $userSize = "40"; endif;
 
-	if(GRAVATAR == "true") :
-
-		$showPic = "<img src='https://www.gravatar.com/avatar/$userpic?s=$userSize' class='img-circle'>";
-
-	else: 
-		$showPic = "<i class=\"mdi mdi-account-box-outline\"></i>";
-
-	endif;
-
-
 	//NEW CHAT
 	if(CHAT == "true" && qualifyUser(CHATAUTH)){
 		if( $db = new SQLite3("chatpack.db") ){