| 1407 | | |
|---|
| 1408 | | $footer_content = file_get_contents("templates/default/footer.tpl"); |
|---|
| 1409 | | |
|---|
| 1410 | | $pos_copyright = strpos($footer_content, '$COPYRIGHT'); |
|---|
| 1411 | | if ($pos_copyright === false) { |
|---|
| 1412 | | return $ret_val; |
|---|
| 1413 | | } |
|---|
| 1414 | | |
|---|
| | 1407 | $pageURL = get_curPageURL(); |
|---|
| | 1408 | $pos = strpos($pageURL, 'phpsysinfo'); |
|---|
| | 1409 | |
|---|
| | 1410 | if ($pos === false) { |
|---|
| | 1411 | |
|---|
| | 1412 | $footer_content = file_get_contents("templates/default/footer.tpl"); |
|---|
| | 1413 | |
|---|
| | 1414 | $pos_copyright = strpos($footer_content, '$COPYRIGHT'); |
|---|
| | 1415 | if ($pos_copyright === false) { |
|---|
| | 1416 | return $ret_val; |
|---|
| | 1417 | } |
|---|
| | 1418 | } |
|---|
| 1418 | | |
|---|
| | 1422 | function get_curPageURL($show_get = 0) { |
|---|
| | 1423 | $pageURL = 'http'; |
|---|
| | 1424 | if ($_SERVER["HTTPS"] == "on") { |
|---|
| | 1425 | $pageURL .= "s"; |
|---|
| | 1426 | } |
|---|
| | 1427 | $pageURL .= "://"; |
|---|
| | 1428 | if ($_SERVER["SERVER_PORT"] != "80") { |
|---|
| | 1429 | $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; |
|---|
| | 1430 | } else { |
|---|
| | 1431 | $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; |
|---|
| | 1432 | } |
|---|
| | 1433 | |
|---|
| | 1434 | $pos = strpos($pageURL, '?'); |
|---|
| | 1435 | |
|---|
| | 1436 | if ($show_get || ($pos === false)) |
|---|
| | 1437 | return $pageURL; |
|---|
| | 1438 | |
|---|
| | 1439 | |
|---|
| | 1440 | $pageURL = substr($pageURL, 0, strpos($pageURL, '?')); |
|---|
| | 1441 | |
|---|
| | 1442 | return $pageURL; |
|---|
| | 1443 | } |
|---|