~ubuntu-branches/ubuntu/hardy/gallery2/hardy-security

« back to all changes in this revision

Viewing changes to install/templates/Multisite.html

  • Committer: Bazaar Package Importer
  • Author(s): Michael C. Schultheiss
  • Date: 2006-04-16 16:42:35 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060416164235-8uy0u4bfjdxpge2o
Tags: 2.1.1-1
* New upstream release (Closes: #362936)
  + Bugfixes for Postgres7 (Closes: #359000, #362152)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
    <script type="text/javascript" src="../lib/javascript/AutoComplete.js"></script>
2
2
    <script type="text/javascript" src="../lib/javascript/XmlHttp.js"></script>
3
3
 
4
 
    <h1>Installation Type</h1>
 
4
    <?php if (isset($templateData['error'])): ?>
 
5
        <div class="error">
 
6
      <h2>
 
7
      <?php print _('Errors occurred. Please see messages below.') ?>
 
8
      </h2>
 
9
    </div>
 
10
    <?php endif; ?>
 
11
 
 
12
    <h1><?php print _('Installation Type') ?></h1>
5
13
    <p>
6
14
      <?php print _('Please select the installation type') ?>
7
15
    </p>
8
 
    <form method="post" action="">
9
 
    <p style="margin-left: 2.2em; text-indent: -2.2em">
 
16
    <form method="post" action="<?php generateUrl(sprintf('%s?step=%s', INDEX_PHP, $stepNumber)) ?>">
 
17
    <div class="multisite">
10
18
      <input type="radio" id="rbStandard" name="isMultisite" value="0" onclick="linkToggle(0)"
11
19
        <?php if (!$templateData['isMultisite']) print 'checked="checked"' ?>>
12
20
      <label for="rbStandard" class="radio">
15
23
      <br/>
16
24
      <?php printf(_('This is the default installation type. Choose this installation type if you want to install a new Gallery in the directory %s which will be accessible with the URL %s.'),
17
25
                   '<tt>' . $templateData['galleryDir'] . '</tt>', '<tt>' . $templateData['galleryUrl'] . '</tt>') ?>
18
 
    </p>
19
 
    <p style="margin-left: 2.2em; text-indent: -2.2em">
 
26
    </div>
 
27
    <div class="multisite">
20
28
      <input type="radio" id="rbMultisite" name="isMultisite" value="1" onclick="linkToggle(1)"
21
29
        <?php if ($templateData['isMultisite']) print 'checked="checked"' ?>>
22
30
      <label for="rbMultisite" class="radio">
29
37
                   '<a href="http://codex.gallery2.org/index.php/Gallery2:Multisite" target="_blank">Multisite Documentation</a>') ?>
30
38
      <br/>
31
39
      <br/>
 
40
      <?php if (isset($templateData['error'])): ?>
 
41
        <div class="error">
 
42
          <?php if (isset($templateData['error']['missing_value'])) {
 
43
                print _('You must enter a directory'); } ?>
 
44
          <?php if (isset($templateData['error']['missing_dir'])) {
 
45
                print _('The directory you entered does not exist'); } ?>
 
46
              <?php if (isset($templateData['error']['codebase_dir'])) {
 
47
                print _('The directory you entered is the codebase directory. If you want to install a Gallery in the codebase directory, select the standard installation type. If you want to install a multisite, choose another directory.'); } ?>
 
48
          <?php if (isset($templateData['error']['inaccessible_dir'])) {
 
49
                print _('The directory you entered is not accessible.  Change the permissions so that the webserver can read this directory.'); } ?>
 
50
          <?php if (isset($templateData['error']['creation_error'])) {
 
51
                print _('Unable to create multisite files. Ensure the files listed below are writeable.'); } ?>
 
52
        </div>
 
53
        <br/>
 
54
      <?php endif; ?>
32
55
      <?php print _('All multisites are installed from this central code repository (codebase).') ?>
33
56
      <br/>
34
57
      <?php print _('Enter the directory for the new multisite below. The path must be different from this codebase installation\'s path:') ?>
37
60
             value="<?php print $templateData['configPath'] ?>" autocomplete="off"/>
38
61
      <script type="text/javascript">
39
62
        // <![CDATA[
40
 
        autoCompleteAttach('dir', '<?php printf('%s?step=%s', INDEX_PHP, $currentStep->getStepNumber()) ?>&doAutoComplete=1&path=__VALUE__');
 
63
        autoCompleteAttach('dir', '<?php generateUrl(sprintf('%s?step=%s&%s=%s', INDEX_PHP, $currentStep->getStepNumber(), session_name(), session_id())) ?>&doAutoComplete=1&path=__VALUE__');
41
64
 
42
65
        function linkToggle(m) {
43
66
          document.getElementById('linkContinue').style.display = m ? 'none' : 'inline';
46
69
        // ]]>
47
70
      </script>
48
71
      <br/>
49
 
      <?php if (isset($templateData['error'])): ?>
50
 
        <span class="error">
51
 
          <?php if (isset($templateData['error']['missing_value'])) {
52
 
                print _('You must enter a directory'); } ?>
53
 
          <?php if (isset($templateData['error']['missing_dir'])) {
54
 
                print _('The directory you entered does not exist'); } ?>
55
 
          <?php if (isset($templateData['error']['codebase_dir'])) {
56
 
                print _('The directory you entered is the codebase directory. If you want to install a Gallery in the codebase directory, select the standard installation type. If you want to install a multisite, choose another directory.'); } ?>
57
 
          <?php if (isset($templateData['error']['inaccessible_dir'])) {
58
 
                print _('The directory you entered is not accessible.  Change the permissions so that the webserver can read this directory.'); } ?>
59
 
          <?php if (isset($templateData['error']['creation_error'])) {
60
 
                print _('Unable to create multisite files. Ensure the files listed below are writeable.'); } ?>
61
 
        </span>
62
 
        <br/>
63
 
      <?php endif; ?>
 
72
 
64
73
      <?php print _('The directory must be writeable by your webserver/php user or contain the following writeable files:') ?>
65
 
      <div class="example" style="margin-top: 0; padding-top: 0; padding-bottom: 0">
66
 
<pre>main.php
 
74
      <div class="example">
 
75
<pre>
 
76
main.php
67
77
index.php
68
78
embed.php
69
 
upgrade/index.php</pre>
 
79
upgrade/index.php
 
80
lib/support/index.php (optional)
 
81
</pre>
70
82
      </div>
71
 
    </p>
 
83
    </div>
72
84
    </form>
73
85
 
74
86
    <div class="go">
75
 
      <span class="goToNext">
 
87
          <div class="btn btn-continue"><span><span><span><span>
76
88
        <a href="javascript:document.forms[0].submit()">
77
89
          <span id="linkContinue"
78
90
            <?php if ($templateData['isMultisite']) print ' style="display: none"' ?>>
83
95
            <?php print _('Select Directory') ?>
84
96
          </span>
85
97
        </a>
86
 
      </span>
 
98
          </span></span></span></span></div>
87
99
    </div>