penguin359

PhotoCatalog Perl Configuration

Apr 17th, 2011
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 2.38 KB | None | 0 0
  1. use 5.008;
  2. use warnings;
  3. use strict;
  4.  
  5. use utf8;
  6.  
  7.  
  8. # Directory where photocatalog is installed.
  9. $settings->{cwd} = "/var/www/www.north-winds.org/cgi-bin/andblog";
  10.  
  11. # Backend for data storage.  Only working type is 'file'.
  12. $settings->{backend} = "file";
  13.  
  14. # Settings for database backend.
  15. $settings->{dataSource} = "DBI:Pg:dbname=photocatalog;host=localhost";
  16. $settings->{dbUser} = "user";
  17. $settings->{dbPass} = "S3cr3t!";
  18.  
  19. # Location where photocatalog is hosted.
  20. $settings->{website} = "http://www.north-winds.org/andblog";
  21.  
  22. $settings->{sources} = [
  23.         {
  24.                 id => 1,
  25.                 type => 'WWW',
  26.                 name => 'Android',
  27.                 kml => {
  28.                         position => 'loc',
  29.                         line => 'path',
  30.                         location => 'place',
  31.                 },
  32.         },
  33.         {
  34.                 id => 2,
  35.                 type => 'InstaMapper',
  36.                 name => 'InstaMapper',
  37.                 deviceKey => '222',
  38.                 apiKey => '11111',
  39.                 kml => {
  40.                         position => 'loc',
  41.                         line => 'path',
  42.                         location => 'place',
  43.                 },
  44.         },
  45.         {
  46.                 id => 3,
  47.                 type => 'RSS',
  48.                 name => 'Twitter RSS',
  49.                 deviceKey => 10,
  50.                 file => 'http://twitter.com/statuses/user_timeline/23379034.rss',
  51.                 kml => {
  52.                         container => 'rss',
  53.                 },
  54.         },
  55.         {
  56.                 id => 4,
  57.                 type => 'Twitter',
  58.                 name => 'Twitter Native',
  59.                 screenName => 'penguin359',
  60.                 kml => {
  61.                         container => 'twitter',
  62.                 },
  63.         },
  64.         {
  65.                 id => 5,
  66.                 type => 'FourSquare',
  67.                 name => 'FourSquare',
  68.                 token => 'jfdakjfldajlk',
  69.                 tokenSecret => 'r3j2kl3rj2ljw',
  70.                 kml => {
  71.                         container => 'foursquare',
  72.                 },
  73.         },
  74.         {
  75.                 id => 6,
  76.                 type => 'Facebook',
  77.                 name => 'Facebook',
  78.                 tokenSecret => 'jdfkajlkfda',
  79.                 kml => {
  80.                         container => 'facebook',
  81.                 },
  82.         },
  83. ];
  84.  
  85. 1;
Advertisement
Add Comment
Please, Sign In to add comment