mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Fixed php notices log messages.
Signed-off-by: D9ping <D9ping@users.noreply.github.com>
This commit is contained in:
parent
bbea02cc54
commit
fb7ba20055
@ -332,6 +332,7 @@ function DisplayTorProxyConfig(){
|
|||||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>';
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$arrConfig = array();
|
||||||
foreach( $return as $a ) {
|
foreach( $return as $a ) {
|
||||||
if( $a[0] != "#" ) {
|
if( $a[0] != "#" ) {
|
||||||
$arrLine = explode( " ",$a) ;
|
$arrLine = explode( " ",$a) ;
|
||||||
|
@ -35,6 +35,8 @@ function RPiVersion() {
|
|||||||
'a02082' => 'Pi 3 Model B',
|
'a02082' => 'Pi 3 Model B',
|
||||||
'a22082' => 'Pi 3 Model B'
|
'a22082' => 'Pi 3 Model B'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$cpuinfo_array = '';
|
||||||
exec('cat /proc/cpuinfo', $cpuinfo_array);
|
exec('cat /proc/cpuinfo', $cpuinfo_array);
|
||||||
$rev = trim(array_pop(explode(':',array_pop(preg_grep("/^Revision/", $cpuinfo_array)))));
|
$rev = trim(array_pop(explode(':',array_pop(preg_grep("/^Revision/", $cpuinfo_array)))));
|
||||||
if (array_key_exists($rev, $revisions)) {
|
if (array_key_exists($rev, $revisions)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user