summaryrefslogtreecommitdiff
path: root/installer/install.html.php
blob: 281166d9099001073ec82a7a33981dfb277bd9a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php defined("SYSPATH") or die("No direct script access.") ?>
<html>
  <head>
    <title>Gallery3 Installer</title>
    <style>
      body {
        background: #eee;
        font-family: Trebuchet MS;
      }

      div#outer {
        width: 650px;
        background: white;
        border: 1px solid #999;
        margin: 0 auto;
        padding: -10px;
      }

      div#inner {
        padding: 0 1em 0 1em;
        margin: 0px;
        height: 400px;
      }

      h1, h2, h3 {
        margin-bottom: .1em;
      }
    </style>
  </head>
  <body>
    <div id="outer">
      <img src="http://www.gallery2.org/gallery2.png"/>
      <div id="inner">
        <?php if ($step == "already_installed"): ?>
        <p>
          Your Gallery3 install is complete.
        <?php elseif ($step == "welcome"): ?>
        <p>
          Welcome to Gallery 3.  In order to get started, we need to
          know how to talk to your database.  You'll need to know:
          <ol>
            <li> Database name </li>
            <li> Database username </li>
            <li> Database password </li>
            <li> Database host </li>
          </ol>

          If you're missing any of this information, please ask your
          web host or system administrator for a little help.
        </p>
        <p>
          <a href="index.php?step=get_info">Continue</a>
        </p>
        <?php elseif ($step == "get_info"): ?>
        <p>
          Enter your database connnection information here.  We've
          provided common values that work for most people.  If you
          have problems, contact your web host for help.
        </p>
        <form method="get" action="index.php">
          <fieldset>
            <ul>
              <li>
                Database Name: <input name="dbname" value="gallery3"/>
              </li>
              <li>
                User: <input name="dbuser" value="root"/>
              </li>
              <li>
                Password: <input name="dbpass" value=""/>
              </li>
              <li>
                Host: <input name="dbhost" value="localhost"/>
              </li>
            </ul>
            <input type="hidden" name="step" value="save_info"/>
            <input type="submit" value="Continue"/x>
          </fieldset>
        </form>
        <?php endif ?>
      </div>
      <p>
        Questions or problems?  Visit the <a href="http://gallery.menalto.com">Gallery Website</a>.
      </p>
    </div>
  </body>
</html>