Changeset 27
- Timestamp:
- 08/19/05 16:04:06 (6 years ago)
- Location:
- trunk
- Files:
-
- 19 added
- 15 modified
-
actions/metalbum/add.action.php (modified) (1 diff)
-
actions/metalbum/delete.action.php (modified) (1 diff)
-
api (added)
-
api/rest.method (added)
-
api/rest.method/dotnode (added)
-
api/rest.method/dotnode/people (added)
-
api/rest.method/dotnode/people/findByUsername.rest.php (added)
-
api/rest.method/dotnode/people/getNbPublicPhotos.rest.php (added)
-
api/rest.method/dotnode/people/getPublicPhotos.rest.php (added)
-
api/rest.method/dotnode/photos (added)
-
api/rest.method/dotnode/photos/getInfo.rest.php (added)
-
data/albums/sized (added)
-
dotnode-api_rest.php (added)
-
dotnode-data.sql (modified) (1 diff)
-
inc/metalbum/album.inc.php (modified) (1 diff)
-
inc/metalbum/view.inc.php (modified) (1 diff)
-
includes/EDIT_config_server.inc.php (modified) (1 diff)
-
includes/Metalbum/dotnode.class.php (added)
-
includes/Metalbum/flickr.class.php (modified) (1 diff)
-
includes/Metalbum/interalbum.class.php (modified) (1 diff)
-
includes/config.inc.php (modified) (2 diffs)
-
includes/functions.inc.php (modified) (1 diff)
-
includes/labels.inc.php (modified) (1 diff)
-
includes/metalbum.class.php (modified) (1 diff)
-
reset_data.sh (modified) (1 diff)
-
smarty/templates/metalbum/album.tpl (modified) (1 diff)
-
smarty/templates/metalbum/view.tpl (modified) (2 diffs)
-
www/api (added)
-
www/api/rest.php (added)
-
www/dpics.php (added)
-
www/img/icons (added)
-
www/img/icons/dotnode.png (added)
-
www/img/icons/flickr.png (added)
-
www/img/icons/interalbum.png (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/actions/metalbum/add.action.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 2 25 $login = $_POST['login']; 3 26 $type = $_POST['type']; -
trunk/actions/metalbum/delete.action.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 2 25 if(is_valid('metalbum_name', $token[3])) { 3 26 list($login, $type) = split('@', $token[3]); -
trunk/dotnode-data.sql
r24 r27 302 302 INSERT INTO `metalbum` VALUES ('354a778bacabffaff3d3fd74f93ac278','flickr','alex-ikse',NULL); 303 303 INSERT INTO `metalbum` VALUES ('354a778bacabffaff3d3fd74f93ac278','interalbum','alexx',NULL); 304 INSERT INTO `metalbum` VALUES ('354a778bacabffaff3d3fd74f93ac278','dotnode','alexx',NULL); 304 305 305 306 -- -
trunk/inc/metalbum/album.inc.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 2 25 include(INCLUDESPATH.'/metalbum.class.php'); 3 26 include(INCLUDESPATH.'/pager.inc.php'); -
trunk/inc/metalbum/view.inc.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 2 25 include(INCLUDESPATH.'/metalbum.class.php'); 3 26 include(INCLUDESPATH.'/pager.inc.php'); -
trunk/includes/EDIT_config_server.inc.php
r24 r27 48 48 $config['metalbum']['flickr']['api_key'] = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; 49 49 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'; 50 55 ?> -
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 2 25 require_once 'Flickr/API.php'; 3 26 -
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 2 25 require_once 'Flickr/API.php'; 3 26 -
trunk/includes/config.inc.php
r24 r27 27 27 define('INCLUDESPATH', BASEPATH.'/../includes'); 28 28 29 define('API_REST_METHODPATH', BASEPATH.'/../api/rest.method'); 30 29 31 define('ROOTDIR', BASEPATH.'/..'); 30 32 define('SMARTYPATH',BASEPATH.'/../smarty'); … … 37 39 define('ALBUMPATH',BASEPATH.'/albums'); 38 40 define('ALBUMTHUMBPATH',BASEPATH.'/albums/thumb'); 41 define('ALBUMSIZEDPATH',BASEPATH.'/albums/sized'); 39 42 40 43 define('MODERATOR_ID', '00112233445566778899001122334455'); -
trunk/includes/functions.inc.php
r24 r27 467 467 return ereg("[a-f0-9]{32}", $string); 468 468 break; 469 case 'photo_id': 470 return is_numeric($string); 471 break; 469 472 case 'metalbum_type': 470 473 if(in_array($string, array_keys($labels['metalbum']['type']))) -
trunk/includes/labels.inc.php
r24 r27 221 221 $labels['metalbum']['type'] = array( 222 222 'interalbum' => 'interAlbum.com', 223 'dotnode' => '.node (dotnode.com)', 223 224 'flickr' => 'Flickr.com' ); 224 225 -
trunk/includes/metalbum.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 ***/ 2 24 3 25 class Metalbum { -
trunk/reset_data.sh
r16 r27 5 5 rm -fr data/*/?? 6 6 rm -fr data/*/thumb/?? 7 rm -fr data/*/sized/* 7 8 rm -fr sessions/* 8 9 :> log/* -
trunk/smarty/templates/metalbum/album.tpl
r24 r27 41 41 <td align='center'> 42 42 <a href='/metalbum/{$url_id}/view/{$metalbum.name}/{$photo.id}'> 43 <img style='margin: 3px;' src='{$photo.url_thumb}' alt=' photo' /></a><br />44 {$photo.title| escape}<br />43 <img style='margin: 3px;' src='{$photo.url_thumb}' alt='$photo.title|escape' /></a><br /> 44 {$photo.title|truncate:30|escape}<br /> 45 45 <span class='subimage'><a href="/metalbum/{$url_id}/view/{$metalbum.name}/{$photo.id}">{t}View full photo{/t}</a></span> 46 46 </td> -
trunk/smarty/templates/metalbum/view.tpl
r24 r27 1 <div id='leftblock' > 2 <a href='/profile/{$url_id}'><img src='{$user.photo}' alt='photo' /></a><br /> 3 <ul class='info'> 4 <li><a href='/profile/{$url_id}'>{$user.info.fname|escape} {$user.info.lname|escape}</a></li> 5 <li>{$user.info.gender_t}{if $user.info.relationship_status_t}, {$user.info.relationship_status_t}{/if}</li> 6 <li>{$user.info.country}</li> 7 <li> </li> 8 {if $user.info.here_for_t} 9 <li><span class='label'>{t}Interested in{/t}:</span><br />{$user.info.here_for_t}</li> 10 {/if} 11 </ul> 12 13 {if $leftmenu} 14 {strip} 15 <ul class='menu'> 16 {foreach name=leftmenu from=$leftmenu item=title key=link} 17 {strip}<li><a href=' 18 {if $link[0] neq '/'} 19 /{$token[0]}/{$link} 20 {else} 21 {$link} 22 {/if} 23 '{if $token[1] eq $link} class='active'{/if}>{t}{$title}{/t}</a></li>{/strip} 24 {/foreach} 25 </ul> 26 {/strip} 27 {/if} 28 </div> 29 30 <div id='home'> 31 <h2>{$photo.title|escape}</h2> 1 <h2>{$photo.title|truncate:50|escape}</h2> 32 2 33 3 <a href='/metalbum/{$url_id}/album/{$metalbum.name}' class='button'>{t}Back{/t}</a><br /> 34 4 <div style='text-align:center'> 35 5 {if $photo} 36 <img src='{$photo.url_full}' alt='{$photo. description|escape}' /><br />6 <img src='{$photo.url_full}' alt='{$photo.title|escape}' /><br /> 37 7 {$photo.description|escape} 38 8 {else} … … 41 11 </div> 42 12 <div style='text-align: right'><a href='/metalbum/{$url_id}/album/{$metalbum.name}' class='button'>{t}Back{/t}</a></div> 43 44 <br />45 <br />46 </div>47 <div style="clear:both"></div>
