root/trunk/inc/metalbum/view.inc.php

Revision 33, 1.9 KB (checked in by alexx, 7 years ago)
  • Auth: Remove MySQL PASSWORD hashing method to hash password, replace by MD5 hashing, add code to make a smooth transition between hashing method
  • XML engine: Fix a trivial recent bug in dotnode-xml.php
  • Robots: fix a bug in crontab script robots/launch_robots.sh (add cd dirname $0)
  • CSS: Add max_width to image in blog (work on Mozilla/*, Opera but not good on Safari (no proportional resizing), of course, that doesn't work on IE)
  • DB: changing DB structure !!!
    ALTER TABLE `user` ADD `passwd_md5` CHAR( 32 ) NOT NULL AFTER `passwd` ;
    ALTER TABLE `user` CHANGE `passwd` `passwd` VARCHAR( 42 ) NULL ;
    ALTER TABLE `dntp_translator` ADD `passwd_md5` CHAR( 32 ) NOT NULL AFTER `passwd` ;
    ALTER TABLE `dntp_translator` CHANGE `passwd` `passwd` VARCHAR( 42 ) NULL ;
    
Line 
1<?php
2/****************************************************** Open .node ***
3 * Description:   
4 * Status:        Stable.
5 * Author:        Alexandre Dath <alexandre@dotnode.com>
6 * $Id$
7 *
8 * Copyright (C) 2005 Alexandre Dath <alexandre@dotnode.com>
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software Foundation,
22 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 ******************** http://opensource.ikse.net/projects/dotnode ***/
24
25include(INCLUDESPATH.'/metalbum.class.php');
26include(INCLUDESPATH.'/pager.inc.php');
27
28
29$_SMARTY['user']['info'] = get_cache_user_info($url_id);
30$_SMARTY['user']['photo'] = build_image_url($url_id);
31
32
33if(is_valid('metalbum_name', $token[2]))
34    $album_name = $token[2];
35else
36{
37    header('Location: /metalbum/'.$url_id);
38    exit();
39}
40
41$photo_id = $token[3];
42
43$_SMARTY['Title'] = 'Meta Album: '.$album_name;
44
45list($login, $type) = split('@', $album_name);
46
47$album =& Metalbum::factory($type, $login, $config['metalbum'][$type]);
48if(is_a($album, 'Metalbum'))
49$_SMARTY['photo'] = $album->getPhotoInfo($photo_id);
50
51$_SMARTY['metalbum']['name'] = $album_name;
52$_SMARTY['metalbum']['login'] = $login;
53$_SMARTY['metalbum']['type'] = $type;
54
55$_SMARTY['leftmenu']["/profile/$url_id"] = 'Profile';
56$_SMARTY['leftmenu']['/metalbum/'.$url_id] = 'Meta Album';
57$_SMARTY['leftmenu']['/metalbum/'.$url_id.'/album/'.$album_name] = $album_name;
58
59
60?>
Note: See TracBrowser for help on using the browser.