Συντονιστής: Geochr
the_eye έγραψε:Σκοπός είναι να αποδεσμευτούμε από τρίτες κλειστές υπηρεσίες φιλοξενίας εικόνων. Χρήσιμο εργαλείο για το forum, την αρχική, το wiki και άλλες υπηρεσίες
M.Jackson έγραψε:Ακομα κατι καλο ειναι να ενωσεις την Database με το site και να κανει login απο εκει ο χρηστης ετσι ωστε να εχει τον control (delete) αλλα και αποφηγη απο spam (τριτα προσωπα).
http://forum.ubuntu-gr.org/search.php?keywords=imageshack&terms=all&author=&sv=0&fid[]=9&sc=1&sf=firstpost&sr=posts&sk=t&sd=d&st=0&ch=300&t=0&submit=%CE%91%CE%BD%CE%B1%CE%B6%CE%AE%CF%84%CE%B7%CF%83%CE%B7
roman έγραψε:Γιατί να μην χρησιμοποιούν την υπηρεσία μόνο τα εγγεγραμμένα μέλη του ubuntu-gr.org αφού κάνουν είσοδο στο forum;
<?php
global $phpbb_link, $phpbb_root_path, $phpEx, $user, $db, $config, $cache, $template, $auth;
define('IN_PHPBB', true);
$phpbb_root_path = '/home/path/to/myforum.example.com/'; //Path to forum
$phpbb_link = 'http://myforum.example.com/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include_once($phpbb_root_path . 'common.'.$phpEx);
//include_once($phpbb_root_path . 'includes/functions_display.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
if($user->data['is_registered'])
{
echo "Welcome " . $user->data['username']; //User is already logged in
}
else
{
echo '<form class="phpbblogin" action="' . $phpbb_link . 'ucp.php?mode=login" method="post">
<label for="username">' . $user->lang['USERNAME'] . ': </label><input type="text" name="username" /><br />
<label for="password">' . $user->lang['PASSWORD'] . ': </label><input type="password" name="password" /><br />
<input type="hidden" name="redirect" value="/redirectme.php" />
<input type="hidden" name="sid" value="' . $user->data["session_id"] . '" />
<input type="checkbox" name="autologin" id="autologin" class="checkbox" /><label for="autologin">' . $user->lang['LOG_ME_IN'] . ':</label>
<br/>
<input type="submit" value="' . $user->lang['LOGIN'] . '" name="login" />
</form>
<span class="registernow"><a href="' . $phpbb_link . 'ucp.php?mode=register">' . $user->lang['REGISTER'] . '</a> <a href="' . $phpbb_link . 'ucp.php?mode=sendpassword">' . $user->lang['FORGOT_PASS'] . '</a></span>';
}
?>
<?php
header( 'Location: http://imagebin.ubuntu-gr.org' );
?>