File tree 8 files changed +25
-22
lines changed
8 files changed +25
-22
lines changed Original file line number Diff line number Diff line change @@ -2285,16 +2285,16 @@ function CheckVersion()
2285
2285
2286
2286
$ objResponse ->addAssign ("relver " , "innerHTML " , $ version ['version ' ]);
2287
2287
2288
- if (defined ( ' SB_GIT ' ) ) {
2288
+ if (SB_DEV ) {
2289
2289
if (intval ($ version ['git ' ]) > SB_GITREV ) {
2290
- $ svnmsg = "<span style='color:#aa0000;'><strong>A New Beta Version is Available.</strong></span> " ;
2290
+ $ svnmsg = "<span style='color:#aa0000;'><strong>A New Dev Version is Available.</strong></span> " ;
2291
2291
} else {
2292
- $ svnmsg = "<span style='color:#00aa00;'><strong>You have the Latest Beta Version.</strong></span> " ;
2292
+ $ svnmsg = "<span style='color:#00aa00;'><strong>You have the Latest Dev Version.</strong></span> " ;
2293
2293
}
2294
2294
2295
2295
if (strlen ($ version ['git ' ]) > 8 || $ version ['git ' ] == "" ) {
2296
2296
$ version ['git ' ] = "<span style='color:#aa0000;'>Error</span> " ;
2297
- $ svnmsg = "<span style='color:#aa0000;'><strong>Error retrieving latest Beta Release .</strong></span> " ;
2297
+ $ svnmsg = "<span style='color:#aa0000;'><strong>Error retrieving latest Dev Version .</strong></span> " ;
2298
2298
}
2299
2299
$ msg .= "<br> " .$ svnmsg ;
2300
2300
$ objResponse ->addAssign ("svnrev " , "innerHTML " , $ version ['git ' ]);
Original file line number Diff line number Diff line change 113
113
$ json = json_decode (file_get_contents ('version.json ' ), true );
114
114
define ('SB_VERSION ' , $ json ['version ' ]);
115
115
define ('SB_GITREV ' , $ json ['git ' ]);
116
+ define ('SB_DEV ' , $ json ['dev ' ]);
116
117
} else {
117
118
define ('SB_VERSION ' , 'N/A ' );
118
119
define ('SB_GITREV ' , '0 ' );
120
+ define ('SB_DEV ' , false );
119
121
}
120
122
}
121
123
define ('LOGIN_COOKIE_LIFETIME ' , (60 *60 *24 *7 )*2 );
Original file line number Diff line number Diff line change 31
31
}
32
32
33
33
global $ theme ;
34
- $ theme ->assign ('SB_REV ' , defined ( ' SB_GIT ' ) ? "-git " . SB_GITREV : '' );
34
+ $ theme ->assign ('SB_REV ' , ( SB_DEV ) ? "-git " . SB_GITREV : '' );
35
35
$ theme ->assign ('SB_VERSION ' , SB_VERSION );
36
36
$ theme ->assign ('SB_QUOTE ' , CreateQuote ());
37
37
$ theme ->display ('page_footer.tpl ' );
Original file line number Diff line number Diff line change 49
49
$ theme ->assign ('access_settings ' , $ userbank ->HasAccess (ADMIN_OWNER | ADMIN_WEB_SETTINGS ));
50
50
$ theme ->assign ('access_mods ' , $ userbank ->HasAccess (ADMIN_OWNER | ADMIN_LIST_MODS | ADMIN_ADD_MODS | ADMIN_EDIT_MODS | ADMIN_DELETE_MODS ));
51
51
52
- $ theme ->assign ('sb_svn ' , defined ( ' SB_GIT ' ) );
52
+ $ theme ->assign ('dev ' , SB_DEV );
53
53
54
54
$ theme ->assign ('demosize ' , sizeFormat ($ demsi ['size ' ]));
55
55
$ theme ->assign ('total_admins ' , $ counts ['admins ' ]);
Original file line number Diff line number Diff line change 42
42
<a href =" index.php?p=admin& ; c=settings" >
43
43
<img src =" themes/default/images/admin/settings.png" alt =" SourceBans Settings" border =" 0" /><br />
44
44
Webpanel Settings
45
- </a >
45
+ </a >
46
46
</li >
47
47
{ /if }
48
48
{ if $access_mods }
54
54
</li >
55
55
{ /if }
56
56
</ul >
57
- </div >
57
+ </div >
58
58
<br />
59
59
60
60
<table width =" 100%" border =" 0" cellpadding =" 3" cellspacing =" 0" >
70
70
</tr >
71
71
<tr >
72
72
<td class =" listtable_1" style =" border-right : 3px solid #CFCAC6 ;" >
73
- { if $sb_svn }
73
+ { if $dev }
74
74
Latest Git: <strong id =' svnrev' >Please Wait...</strong >
75
- { /if }
75
+ { /if }
76
76
</td >
77
77
<td class =" listtable_1" style =" border-right : 3px solid #CFCAC6 ; border-left : 3px solid #CFCAC6 ;" >  ; </td >
78
78
<td class =" listtable_1" style =" border-left : 3px solid #CFCAC6 ;" >Connections Blocked: <strong >{ $total_blocks } </strong ></td >
108
108
<td class =" listtable_1" style =" border-left : 3px solid #CFCAC6 ;" >  ; </td >
109
109
</tr >
110
110
</table >
111
- <script type =" text/javascript" >xajax_CheckVersion (); </script >
111
+ <script type =" text/javascript" >xajax_CheckVersion (); </script >
Original file line number Diff line number Diff line change 38
38
<a href =" index.php?p=admin& ; c=settings" >
39
39
<img src =" themes/default/images/admin/settings.png" alt =" SourceBans Settings" border =" 0" /><br />
40
40
Webpanel Settings
41
- </a >
41
+ </a >
42
42
</li >
43
43
{ /if }
44
44
{ if $access_mods }
50
50
</li >
51
51
{ /if }
52
52
</ul >
53
- </div >
53
+ </div >
54
54
<br />
55
55
56
56
<table width =" 100%" border =" 0" cellpadding =" 3" cellspacing =" 0" >
66
66
</tr >
67
67
<tr >
68
68
<td >
69
- { if $sb_svn }
69
+ { if $dev }
70
70
Latest Git: <strong id =' svnrev' >Please Wait...</strong >
71
- { /if }
71
+ { /if }
72
72
</td >
73
73
<td >  ; </td >
74
74
<td >Connections Blocked: <strong >{ $total_blocks } </strong ></td >
99
99
<td >  ; </td >
100
100
</tr >
101
101
</table >
102
- <script type =" text/javascript" >xajax_CheckVersion (); </script >
102
+ <script type =" text/javascript" >xajax_CheckVersion (); </script >
Original file line number Diff line number Diff line change 38
38
<a href =" index.php?p=admin& ; c=settings" >
39
39
<img src =" themes/default/images/admin/settings.png" alt =" SourceBans Settings" border =" 0" /><br />
40
40
Webpanel Settings
41
- </a >
41
+ </a >
42
42
</li >
43
43
{ /if }
44
44
{ if $access_mods }
50
50
</li >
51
51
{ /if }
52
52
</ul >
53
- </div >
53
+ </div >
54
54
<br />
55
55
56
56
<table width =" 100%" border =" 0" cellpadding =" 3" cellspacing =" 0" >
66
66
</tr >
67
67
<tr >
68
68
<td >
69
- { if $sb_svn }
69
+ { if $dev }
70
70
Latest Git: <strong id =' svnrev' >Please Wait...</strong >
71
- { /if }
71
+ { /if }
72
72
</td >
73
73
<td >  ; </td >
74
74
<td >Connections Blocked: <strong >{ $total_blocks } </strong ></td >
99
99
<td >  ; </td >
100
100
</tr >
101
101
</table >
102
- <script type =" text/javascript" >xajax_CheckVersion (); </script >
102
+ <script type =" text/javascript" >xajax_CheckVersion (); </script >
Original file line number Diff line number Diff line change 1
1
{
2
2
"version" : " 1.6.2" ,
3
- "git" : " 531"
3
+ "git" : " 531" ,
4
+ "dev" : false
4
5
}
You can’t perform that action at this time.
0 commit comments