Login integration Login integration
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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)