PluginProbe
WebTotem Security / 2.3.14
WebTotem Security v2.3.14
3.0.1 3.0.0 trunk 1.0 1.1 1.2 1.3 1.3.1 1.3.2 1.3.3 2.0 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.1 2.2.2 2.2.3 2.2.4 All 109 releases
← All changes | library/Session.php +12 -3 2.2.12.3.14 View file →
@@ -9,9 +9,9 @@
9 9 "error","info","warning","success"
10 10 ];
11 11
12 12 //need upgrade code style
13 - $styles = ["error" => ["color" => "red","class" =>"wtotem_alert__img_cross","img" => ""],"info" => ["color" => "","class" => "","img" => ""],"warning" => ["color" => "yellow","class" => "", "img" => '<img src="'.wtsec_getImagePath("alert-warning.svg").'">'],"success" => ["color" => "green","class" => "" ,"img" => '<img src="'.wtsec_getImagePath("alert-success.svg").'">']];
13 + $styles = ["error" => ["color" => "red","class" => "wtotem_alert__img_cross", "img" => ""],"info" => ["color" => "","class" => "","img" => ""],"warning" => ["color" => "yellow","class" => "", "img" => '<img src="'.wtsec_getImagePath("alert-warning.svg").'">'],"success" => ["color" => "green","class" => "" ,"img" => '<img src="'.wtsec_getImagePath("alert-success.svg").'">']];
14 14
15 15 foreach ($notification_types as $type) {
16 16 if ($notifications = get_option(WTSEC_PLUGIN_PREFIX.$type)) {
17 17 if(is_array($notifications)) {
@@ -19,12 +19,12 @@
19 19 $style = $styles[$type];
20 20 echo '<div class="wtotem_alert wt_card" id="wtotem_alert" style="margin-bottom:0">
21 21 <div class="wtotem_alert__desc">
22 22 <div class="wtotem_alert__img '.$style["class"].'">'.$style["img"].'</div>
23 - <div class="wtotem_alert__title wtotem_alert__title_'.$style["color"].'">'.strtoupper($type).':</div>
23 + <div class="wtotem_alert__title wtotem_alert__title_'.$style["color"].'">'.WTSEC_LIBRARY_Localization::lmsg('statuses.' . $type).': </div>
24 24 <p class="wtotem_alert__text">'.$notification.'</p>
25 25 </div>
26 - <div class="wtotem_alert__close" onclick="removeAlert()"></div>
26 + <div class="wtotem_alert__close" ></div>
27 27 </div>';
28 28 }
29 29 }
30 30 self::deleteNotification($type);
@@ -43,5 +43,14 @@
43 43 }else{
44 44 update_option(WTSEC_PLUGIN_PREFIX.$type,[$value]);
45 45 }
46 46 }
47 +
48 + public static function _set($name, $value){
49 + $_SESSION[WTSEC_PLUGIN_PREFIX . $name] = $value;
50 + }
51 +
52 + public static function _get($name){
53 + return $_SESSION[WTSEC_PLUGIN_PREFIX . $name];
54 + }
55 +
47 56 }