Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Gimana mau buat custome error page pada 2.0 RC1

    Scheduled Pinned Locked Moved Indonesian
    2 Posts 1 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      syedadi
      last edited by

      Sebelum ini aku guna v 1.2.3 dan aku punyai costome error page. Hari ni box aku sudah KAPUT, so aku ganti dngn version 2.0 Rc1. Aku cuba masukkan page asal dari v1.2.3 tapi teryata page berkenaan tidak compatible dngn 2.0Rc1

      ni source code asal custome error page aku pada 1.2.3

      **# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      IE displayed self-page, if them size > 1024

      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      function get_error_page($er_code_id, $err_msg='') {
              global $err_code;
              global $cl;
              $str = Array();

      header("HTTP/1.1 " . $err_code[$er_code_id]);
        $str[] = '';
              $str[] = '';
            $str[] = '';
              $str[] = '';
            $str[] = '';
            $str[] = '';
                      if ($cl['n'])        $str[] = "Client Name: {$cl['n']} | ";
                      if ($cl['a'])        $str[] = "Client IP: {$cl['a']} | ";
                      if ($cl['i'])        $str[] = "Client User: {$cl['i']} | ";
                      if ($cl['s'])        $str[] = "Group: {$cl['s']} | ";
                      if ($cl['t'])        $str[] = "Category: {$cl['t']} ";
            $str[] = '';

      $str[] = 'Access Denied!';
          $str[] = '';
          if ($err_msg) $str[] = '

      • '. $err_msg.' -

      ';
          if ($cl['u'])        $str[] = "

      URL: {$cl['u']}

      ";
          $str[] = '

      Please contact your Network Administrator if you think there has been an error.

      ';
          $str[] = '

      ';
              $str[] = 'Web Filtering by <a style="color:#FFFFFF;"></a>PfSense and SquidGuard';
              $str[] = "";
              $str[] = "";

      return implode("\n", $str);
      }**

      Ada sesiapa boleh bantu aku betulkn msalah ini? bawah ini page bile di viewd pada client.

      1 Reply Last reply Reply Quote 0
      • S
        syedadi
        last edited by

        Has been recovered, Sorry for the problems… =)

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.