Changeset 27 for trunk/includes

Show
Ignore:
Timestamp:
08/19/05 16:04:06 (7 years ago)
Author:
alexx
Message:
  • Add support for .node album in Meta album (not usefull for dotnode.com user, but good for other "Open .node" installation that want to import dotnode.com album)
  • Add REST api to access .node Album (must be extented later with other module of .node)
  • Add forgotten icons for meta album
  • Add dPics scripts to automagicaly resize requested image with size put in his url (<dpics script>/500x400/<file_path>.jpg => give you <file_path>.jpg in 500x400)
Location:
trunk/includes
Files:
1 added
7 modified

Legend:

Unmodified
Added
Removed
  • trunk/includes/EDIT_config_server.inc.php

    r24 r27  
    4848$config['metalbum']['flickr']['api_key'] = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; 
    4949 
     50// It's you interalbum.com login + mms code like this : "login@mmscode" 
     51$config['metalbum']['interalbum']['api_key'] = 'xxxxxx@xxxx'; 
     52 
     53// It's your ID on dotnode.com (32 chars a-f0-9) 
     54$config['metalbum']['dotnode']['api_key'] = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; 
    5055?> 
  • trunk/includes/Metalbum/flickr.class.php

    r24 r27  
    1 <? 
     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 
    225require_once 'Flickr/API.php'; 
    326 
  • trunk/includes/Metalbum/interalbum.class.php

    r26 r27  
    1 <? 
     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 
    225require_once 'Flickr/API.php'; 
    326 
  • trunk/includes/config.inc.php

    r24 r27  
    2727define('INCLUDESPATH', BASEPATH.'/../includes'); 
    2828 
     29define('API_REST_METHODPATH', BASEPATH.'/../api/rest.method'); 
     30 
    2931define('ROOTDIR', BASEPATH.'/..'); 
    3032define('SMARTYPATH',BASEPATH.'/../smarty'); 
     
    3739define('ALBUMPATH',BASEPATH.'/albums'); 
    3840define('ALBUMTHUMBPATH',BASEPATH.'/albums/thumb'); 
     41define('ALBUMSIZEDPATH',BASEPATH.'/albums/sized'); 
    3942 
    4043define('MODERATOR_ID', '00112233445566778899001122334455'); 
  • trunk/includes/functions.inc.php

    r24 r27  
    467467                return ereg("[a-f0-9]{32}", $string); 
    468468                break; 
     469        case 'photo_id': 
     470                return is_numeric($string); 
     471                break; 
    469472        case 'metalbum_type': 
    470473                if(in_array($string, array_keys($labels['metalbum']['type']))) 
  • trunk/includes/labels.inc.php

    r24 r27  
    221221$labels['metalbum']['type'] = array( 
    222222        'interalbum' => 'interAlbum.com', 
     223        'dotnode' => '.node (dotnode.com)', 
    223224        'flickr' => 'Flickr.com' ); 
    224225 
  • trunk/includes/metalbum.class.php

    r24 r27  
    11<?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 ***/ 
    224 
    325class Metalbum {