Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Login integration  (Read 2934 times)

0 Members and 1 Guest are viewing this topic.

JonSmyth

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Login integration
« on: January 20, 2006, 08:15:18 pm »

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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Login integration
« Reply #1 on: January 21, 2006, 05:43:22 am »

Code: [Select]
<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
Code: [Select]
/path/to/your/coppermine/folder/appropriately (is in the code twice)
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.