News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

Login integration

Started by JonSmyth, January 20, 2006, 08:15:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JonSmyth

Hey,

Okay... How can I integrate the login script to another page throughout my site.

I want a login script on my main site page.

All help is muchly appreciated.

Thanks,
Jon Smyth.

Joachim Müller

<form action="/path/to/your/coppermine/folder/login.php" method="post" name="loginbox" style="margin:0px">
  <table border="0" cellspacing="0" cellpadding="0" class="maintable">
    <tr>
      <td class="tableb" width="40%">
        Username
      </td>
      <td class="tableb" width="60%">
        <input type="text" class="textinput" name="username" style="width: 100%" />
      </td>
    </tr>
    <tr>
      <td class="tableb">
        Password
      </td>
      <td class="tableb">
        <input type="password" class="textinput" name="password" style="width: 100%" />
      </td>
    </tr>
    <tr>
      <td colspan="2" align="center" class="tableb">
        <label for="remember_me">Remember me</label>
        <input name="remember_me" type="checkbox" class="checkbox" value="1" />
      </td>
    </tr>
    <tr>
      <td align="center" class="tablef">
        <a href="/path/to/your/coppermine/folder/forgot_passwd.php" class="topmenu">I forgot my password</a>
      </td>
      <td align="left" class="tablef">
        <input name="submitted" type="submit" class="button" value="Login" />
      </td>
    </tr>
  </table>
</form>


Edit /path/to/your/coppermine/folder/appropriately (is in the code twice)