gitprep / setup / setup.php /
Newer Older
41 lines | 0.894kb
added module setup tool
Yuki Kimoto authored on 2013-03-30
1
<?php
improved install process
Yuki Kimoto authored on 2013-04-09
2
  ini_set( 'display_errors', 1 );
added module install feature...
Yuki Kimoto authored on 2013-03-30
3
  
improved install process
Yuki Kimoto authored on 2013-04-09
4
  # Setup directory
5
  if ($setup_dir = getcwd()) {
6
    # Setup CGI script
7
    $setup_cgi_script = "$setup_dir/setup.cgi";
added module install feature...
Yuki Kimoto authored on 2013-03-30
8
    
improved install process
Yuki Kimoto authored on 2013-04-09
9
    # Chmod Setup CGI script
10
    if (chmod($setup_cgi_script, 0755)) {
11
      $setup_cgi_url = $_SERVER['PHP_SELF'];
12
      $setup_cgi_url = preg_replace('/\.php$/', '.cgi', $setup_cgi_url);
13
      header("Location: $setup_cgi_url");
14
      exit();
added module install feature...
Yuki Kimoto authored on 2013-03-30
15
    }
16
    else {
improved install process
Yuki Kimoto authored on 2013-04-09
17
      $error = "Can't $setup_cgi_script mode to 755";
added module install feature...
Yuki Kimoto authored on 2013-03-30
18
    }
19
  }
improved install process
Yuki Kimoto authored on 2013-04-09
20
  else {
21
    $error = "Can't change directory";
22
  }
added module setup tool
Yuki Kimoto authored on 2013-03-30
23
?>
24

            
25
<!DOCTYPE html>
26
<html>
27
  <head>
removed jquery and bootstrup...
Yuki Kimoto authored on 2013-04-21
28
    <title>Setup</title>
added module setup tool
Yuki Kimoto authored on 2013-03-30
29
  </head>
30
  <body>
31
    <div class="container">
removed jquery and bootstrup...
Yuki Kimoto authored on 2013-04-21
32
      <div class="text-center"><h1>Setup</h1></div>
added module setup tool
Yuki Kimoto authored on 2013-03-30
33
    </div>
34
    <hr style="margin-top:0;margin-bottom:0">
35
    <div class="container">
removed jquery and bootstrup...
Yuki Kimoto authored on 2013-04-21
36
      <div style="color:red">
improved install process
Yuki Kimoto authored on 2013-04-09
37
        <?php echo $error ?>
38
      </div>
added module setup tool
Yuki Kimoto authored on 2013-03-30
39
    </div>
40
  </body>
41
</html>