$d_langs = '<dl><dt> Programmation languages: </dt><dd>' . substr($d_langs, 2) . '.</dd></dl>'; } // CATEGORIES $d_cats = ''; $list = $request->list_categories(); if ($list) { foreach ($list as $cat_id) { $cat = category_get_by_id($cat_id); if ($cat) { $d_cats .= ', ' . $cat->get_name_cat(); } } $d_cats = '<dl><dt> Categories: </dt><dd>' . substr($d_cats, 2) . '.</dd></dl>'; } // show the data (NO PROCESSING HERE PLEASE, ONLY ECHOs) header_box('Igoan :: View Project :: ' . $my_prj->get_name_prj()); flush_errors(); ?> <div id="main"><?php // these are the "stuff" section login_box($me); categories_box(); #echo $my_prj.' '.$my_branch.' '.$my_rel; ?> <div class="item soft"> <h4> <?php echo $d_full_title; ?> </h4> <div class="infos"> <?php
if (isset($_GET['desc_user'])) { $me->set_desc_user($_GET['desc_user']); } if (isset($_GET['url_user'])) { $me->set_url_user($_GET['url_user']); } if (!empty($_GET['mail'])) { $me->set_mail($_GET['mail']); } if (isset($_GET['photo'])) { // TODO: prendre en compte la photo } $me->write(); } // show the data (NO PROCESSING HERE PLEASE, ONLY ECHOs) header_box('Igoan :: Edit user infos :: ' . $me->get_name_user()); flush_errors(); ?> <div id="main"><?php // these are the "stuff" section login_box($me); categories_box(); ?> <div class="item soft"> <h4> Edit User :: <?php echo $me->get_name_user(); ?> </h4> <form> <input type="hidden" name="id_user" value="<?php echo $me->get_id_user();
# # Igoan is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Igoan; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # require_once 'igoan/Project.class.php'; require_once 'igoan/User.class.php'; $me = user_get_by_id($_SESSION['id']); $result = sql_do('SELECT id_prj FROM projects ORDER BY id_prj DESC'); // show the data (NO PROCESSING HERE PLEASE, ONLY ECHOs) header_box('Igoan :: The Free Directory Project'); flush_errors(); ?> <div id="main"><?php // these are the "stuff" section login_box($me); //categories_box(); ?> </div> <div class="item soft"> <h2>Last project:</h2> <ul> <?php
append_error('Unable to create the default branch, please contact the administrator.'); } } // ... par défaut if (!errors()) { $prj->set_default_branch($id_branch); $prj->write(); } if (!errors()) { sql_do('COMMIT'); http_redir('/project/view.php?id_prj=' . $id_prj); } else { sql_do('ROLLBACK'); } } header_box("Igoan :: Adding a new project"); flush_errors(); ?> <div id="main"> <form class="admin" action="new_project.php"> <h2>Adding a project</h2> <div class="abstract"> <p> Adding a project to our database is as easy as 1, 2, 3: </p> <ol> <li><em>Register, and then log in :)</em></li> <li> <em>Tell us about your project: select a project name, add a description and
if ($_GET['passwd1'] != $_GET['passwd2']) { append_error('Passwords mismatch'); } else { if (empty($_GET['passwd1'])) { append_error('Aha. Yes of course ...'); } } } if (!errors()) { // do the job $me->set_passwd($_GET['passwd1']); $me->write(); http_redir('/user/view.php'); } } header_box('Igoan :: Change Password :: ' . $me->get_user_name()); ?> <div id="main"> <?php if (errors()) { flush_errors(); } ?> <h2>Changing your user password</h2> <form> <div class="description"> <div class="block"> <label for="oldpass">Please give your <strong>actual</strong> password first:</label> <input type="password" name="oldpass" id="oldpass"/> </div> <div class="block">
http_redir('/project/view.php?id_rel=' . $rel->get_id_rel()); } } } } else { append_error_exit('No action specified.'); } } } ?> <?php // OUTPUT header_box('Igoan :: Adding a user as a project member'); flush_errors(); ?> <div id="main"> <form class="admin" action="add_user.php"><?php // case of 'AUTHOR' if (isset($rel)) { ?> <input type="hidden" name="id_rel" value="<?php echo $id_rel; ?> " /> <h2> Adding an author to a release </h2> <div class="abstract"> <p>
# along with Igoan; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # require_once 'igoan/User.class.php'; if (isset($_GET['login']) && isset($_GET['passwd'])) { $me = user_get_by_password($_GET['login'], $_GET['passwd']); if (!$me) { append_error('Login incorrect.'); } else { $_SESSION['id'] = $me->get_id_user(); } if (!errors()) { http_redir(empty($_GET['referer']) ? '/index.php' : $_GET['referer']); } } header_box('Igoan :: Login'); ?> <div id="main"> <form class="admin" action="login.php"> <?php flush_errors(); ?> <h2> Login </h2> <div class="description"> <p style="margin-bottom: 1em;"> Enter your login and password to continue. </p> <div class="block"> <label for="username"> Login: </label> <input title="Your igoan user name." id="username" name="login" type="text" <?php
$id_branch = branch_new($_GET['name_branch'], $prj->get_id_prj()); $branch = branch_get_by_id($id_branch); if (!$branch) { append_error('Unable to create a new branch'); } if (!errors()) { http_redir('/project/view.php?id_branch=' . $branch->get_id_branch()); } } ?> <?php // OUTPUT header_box("Igoan :: Adding a new branch to a project"); flush_errors(); ?> <div id="main"> <form class="admin" action="new_branch.php"> <input type="hidden" name="id_prj" value="<?php echo $id_prj; ?> " /> <h2> Adding a new branch to a project </h2> <div class="abstract"> <p> Blabla, introduction qui explique a quoi sert une branche, tout ça ... </p> </div> <h2> Filling informations </h2>
(http://www.igoan.org/user/login.php) and change your password to activate your account. Then you will be able to register new projects on our databases. Best regards, The Igoan Team. ', 'From: Igoan Registration Process <*****@*****.**>'); } else { append_error('Unable to fetch new user informations'); } } else { append_error('Unable to create new user'); } } } header_box('Igoan :: New User'); ?> <div id="main"> <?php if (!errors() and isset($login)) { ?> <h2>Registration submitted</h2> <div class="abstract"> <p> A mail has been sent to <em><?php echo $_GET['email']; ?> </em>. </p> <p> Check your mailbox and follow the instructions.
if (!empty($_GET['code'])) { switch ($_GET['code']) { case '404': $short = 'Error 404 : Not Found'; $long = 'The page you requested does not exist.'; break; case '500': $short = 'Error 500 : Internal Server Error'; $long = 'The server encountered an unexpected condition which prevented it from fulfilling the request.<br/>Please contact the <a href="mailto:www@igoan.org">webmaster</a>.'; break; default: $short = 'Error'; $long = 'Your action has generated an error.'; } } header_box('Igoan :: ' . $short); ?> <div id="main"> <div class="abstract error"><?php if (errors()) { flush_errors(0); ?> <p> Your action has generated a fatal error and had been stopped. </p><?php } else { ?> <h4><?php echo $short; ?> </h4>
} } } $d_myrel = '<div class="historique"><dl><dt> Releases contributed by ' . $requested->get_name_user() . ': </dt>' . '<dd><table><thead><tr><th class="short"> Complete release name </th>' . '<th class="short"> Release date </th></tr></thead><tbody>' . $d_myrel . '</tbody></table></dd></dl></div>'; } // Apres les entetes, on affiche les erreurs if (errors()) { flush_errors_exit(); } // un chti flag if ($_SESSION['id'] == $requested->get_id_user()) { $myself = true; } else { $myself = False; } header_box('Igoan :: View User :: ' . $requested->get_name_user()); ?> <div id="main"> <?php login_box(); categories_box(); ?> <div class="item soft"> <h4> View User :: <?php echo $requested->get_name_user(); ?> </h4> <div class="infos"> <div class="screenshot"> <?php if (!$requested->get_photo()) {