Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: gallery is a diferent domain  (Read 43488 times)

0 Members and 1 Guest are viewing this topic.

nicky

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
gallery is a diferent domain
« on: July 04, 2009, 07:02:04 pm »

Hello there! I have 2 domains, one for my main site and one for the gallery. It is possible to add the cpmfetch to the gallery site and have the code in the main site??? (i mean the latest pics). What could be the code???

I was trying this but always get an error.

Thanks for all
Logged

Nibbler

  • Guest
Re: gallery is a diferent domain
« Reply #1 on: July 04, 2009, 07:05:55 pm »

Logged

nicky

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Re: gallery is a diferent domain
« Reply #2 on: July 04, 2009, 07:28:49 pm »

I am sorry.

My main site is www.incomplete-men.com and my gallery is www.bsbphotos.net. I installed the cpmfetch into my gallery domain and then, I am writing the code into my main site and I always get this error:

Quote
Warning: include(.bsbphotos.net/gallery/cpmfetch/cpmfetch.php) [function.include]: failed to open stream: No such file or directory in /home/backstre/public_html/footer.php on line 132

Warning: include() [function.include]: Failed opening '.bsbphotos.net/gallery/cpmfetch/cpmfetch.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/backstre/public_html/footer.php on line 132

Fatal error: Class 'cpm' not found in /home/backstre/public_html/footer.php on line 133
Logged

Nibbler

  • Guest
Re: gallery is a diferent domain
« Reply #3 on: July 04, 2009, 07:35:55 pm »

You just need to put the right path in there.
Logged

nicky

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Re: gallery is a diferent domain
« Reply #4 on: July 04, 2009, 07:55:08 pm »

But, what is it??? I am so sorry but I fell some stupid today :(
Logged

Nibbler

  • Guest
Re: gallery is a diferent domain
« Reply #5 on: July 04, 2009, 08:56:50 pm »

You tell me. What is the full path of the gallery?
Logged

nicky

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Re: gallery is a diferent domain
« Reply #6 on: July 04, 2009, 09:22:56 pm »

bsbphotos.net/gallery
Logged

Nibbler

  • Guest
Re: gallery is a diferent domain
« Reply #7 on: July 04, 2009, 09:41:46 pm »

Go to phpinfo.php in your browser and copy/paste the page here.
Logged

nicky

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Re: gallery is a diferent domain
« Reply #8 on: July 04, 2009, 10:35:41 pm »

Code: [Select]
PHP info
This is the output generated by the PHP-function phpinfo(), displayed within Coppermine (trimming the output at the right side).
Having others see your phpinfo can be a security risk, that's why this page is only visible when you're logged in as admin. You can not post a link to this page for others, they will be denied access.


PHP Version 5.2.9

System  Linux jennet.jennifergarnerfans.net 2.6.9-89.ELsmp #1 SMP Mon Apr 20 10:34:33 EDT 2009 i686  
Build Date  Jun 3 2009 13:20:47  
Configure Command  './configure' '--disable-pdo' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-sockets' '--prefix=/usr' '--with-freetype-dir=/usr' '--with-gd' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libxml-dir=/opt/xml2/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-png-dir=/usr' '--with-ttf' '--with-xpm-dir=/usr/X11R6' '--with-zlib' '--with-zlib-dir=/usr'  
Server API  CGI  
Virtual Directory Support  disabled  
Configuration File (php.ini) Path  /usr/lib  
Loaded Configuration File  /usr/local/lib/php.ini  
Scan this dir for additional .ini files  (none)  
additional .ini files parsed  (none)  
PHP API  20041225  
PHP Extension  20060613  
Zend Extension  220060519  
Debug Build  no  
Thread Safety  disabled  
Zend Memory Manager  enabled  
IPv6 Support  enabled  
Registered PHP Streams  php, file, data, http, ftp, compress.zlib  
Registered Stream Socket Transports  tcp, udp, unix, udg  
Registered Stream Filters  string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, zlib.*  

 This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
    with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
 


--------------------------------------------------------------------------------

PHP Credits
--------------------------------------------------------------------------------

ConfigurationPHP Core
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen Off Off
allow_url_include Off Off
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors STDOUT STDOUT
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl Off Off
error_append_string no value no value
error_log error_log error_log
error_prepend_string no value no value
error_reporting 6143 6135
expose_php On On
extension_dir /usr/local/lib/php/extensions/no-debug-non-zts-20060613 /usr/local/lib/php/extensions/no-debug-non-zts-20060613
file_uploads On On
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/lib/php:/usr/local/lib/php .:/usr/lib/php:/usr/local/lib/php
log_errors Off On
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.force_extra_parameters no value no value
max_execution_time 30 30
max_input_nesting_level 64 64
max_input_time 60 60
memory_limit 64M 64M
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 32M 32M
precision 12 12
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv On On
register_globals Off Off
register_long_arrays On On
report_memleaks On On
report_zend_debug On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 16M 16M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.ze1_compatibility_mode Off Off


bcmath
BCMath support  enabled  


calendar
Calendar support  enabled  


cgi
Directive Local Value Master Value
cgi.check_shebang_line 1 1
cgi.fix_pathinfo 1 1
cgi.nph 0 0
cgi.rfc2616_headers 0 0


ctype
ctype functions  enabled  


date
date/time support  enabled  
"Olson" Timezone Database Version  2009.1  
Timezone Database  internal  
Default timezone  America/Chicago  

Directive Local Value Master Value
date.default_latitude 31.7667 31.7667
date.default_longitude 35.2333 35.2333
date.sunrise_zenith 90.583333 90.583333
date.sunset_zenith 90.583333 90.583333
date.timezone no value no value


dom
DOM/XML  enabled  
DOM/XML API Version  20031129  
libxml Version  2.7.3  
HTML Support  enabled  
XPath Support  enabled  
XPointer Support  enabled  
Schema Support  enabled  
RelaxNG Support  enabled  


filter
Input Validation and Filtering  enabled  
Revision  $Revision: 1.52.2.45 $  

Directive Local Value Master Value
filter.default unsafe_raw unsafe_raw
filter.default_flags no value no value


ftp
FTP support  enabled  


gd
GD Support  enabled  
GD Version  bundled (2.0.34 compatible)  
FreeType Support  enabled  
FreeType Linkage  with freetype  
FreeType Version  2.1.9  
GIF Read Support  enabled  
GIF Create Support  enabled  
JPG Support  enabled  
PNG Support  enabled  
WBMP Support  enabled  
XPM Support  enabled  
XBM Support  enabled  


hash
hash support  enabled  
Hashing Engines  md2 md4 md5 sha1 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5  


iconv
iconv support  enabled  
iconv implementation  glibc  
iconv library version  2.3.4  

Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1


imap
IMAP c-Client Version  2006k  
SSL Support  enabled  
Kerberos Support  enabled  


json
json support  enabled  
json version  1.2.1  


libxml
libXML support  active  
libXML Version  2.7.3  
libXML streams  enabled  


mysql
MySQL Support enabled
Active Persistent Links  0  
Active Links  1  
Client API version  4.1.22  
MYSQL_MODULE_TYPE  external  
MYSQL_SOCKET  /var/lib/mysql/mysql.sock  
MYSQL_INCLUDE  -I/usr/include/mysql  
MYSQL_LIBS  -L/usr/lib -lmysqlclient  

Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off


pcre
PCRE (Perl Compatible Regular Expressions) Support  enabled  
PCRE Library Version  7.8 2008-09-05  

Directive Local Value Master Value
pcre.backtrack_limit 100000 100000
pcre.recursion_limit 100000 100000


posix
Revision  $Revision: 1.70.2.3.2.22 $  


Reflection
Reflection enabled
Version  $Id: php_reflection.c,v 1.164.2.33.2.55 2008/12/31 11:17:42 sebastian Exp $  


session
Session Support  enabled  
Registered save handlers  files user sqlite  
Registered serializer handlers  php php_binary  

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_httponly Off Off
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 4 4
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path no value no value
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid 0 0


SimpleXML
Simplexml support enabled
Revision  $Revision: 1.151.2.22.2.46 $  
Schema support  enabled  


sockets
Sockets Support  enabled  


SPL
SPL support enabled
Interfaces  Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject  
Classes  AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RegexIterator, RuntimeException, SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage, SplTempFileObject, UnderflowException, UnexpectedValueException  


SQLite
SQLite support enabled
PECL Module version  2.0-dev $Id: sqlite.c,v 1.166.2.13.2.12 2008/12/31 11:17:44 sebastian Exp $  
SQLite Library  2.8.17  
SQLite Encoding  iso8859  

Directive Local Value Master Value
sqlite.assoc_case 0 0


standard
Regex Library  Bundled library enabled  
Dynamic Library Support  enabled  
Path to sendmail  /usr/sbin/sendmail -t -i  

Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
default_socket_timeout 60 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,input=src,form=,fieldset= a=href,area=href,frame=src,input=src,form=,fieldset=
user_agent no value no value


tokenizer
Tokenizer Support  enabled  


xml
XML Support  active  
XML Namespace Support  active  
libxml2 Version  2.7.3  


xmlreader
XMLReader  enabled  


xmlwriter
XMLWriter  enabled  


Zend Optimizer
Optimization Pass 1  enabled  
Optimization Pass 2  enabled  
Optimization Pass 3  enabled  
Optimization Pass 4  enabled  
Optimization Pass 9  enabled  
Zend Loader  enabled  
License Path  no value  
Obfuscation level  3  


zlib
ZLib Support  enabled  
Stream Wrapper support  compress.zlib://  
Stream Filter support  zlib.inflate, zlib.deflate  
Compiled Version  1.2.1.2  
Linked Version  1.2.1.2  

Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value


Additional Modules
Module Name


Environment
Variable Value
DOCUMENT_ROOT  /home/bsbphoto/public_html  
GATEWAY_INTERFACE  CGI/1.1  
HTTP_ACCEPT  image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*  
HTTP_ACCEPT_ENCODING  gzip, deflate  
HTTP_ACCEPT_LANGUAGE  es  
HTTP_CONNECTION  Keep-Alive  
HTTP_COOKIE  bsbphotos_data=YTo1OntzOjI6IklEIjtzOjMyOiJhZWFkMDkyNTJmNjIxZjJlMDkzNTJiYWM2OTRjNWE0YyI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJzcGFuaXNoIjtzOjM6ImxpdiI7YTowOnt9czozOiJsYXAiO2k6NDt9; 44b3a45004278165a9d3670ac9fd9b3c=224e4ff03be9c454b7388558772b8b67; __gads=ID=a076a17e9be5c40e:T=1239889032:S=ALNI_MavEXeGOiDHFCPa-a69j7xsGufnEw  
HTTP_HOST  www.bsbphotos.net  
HTTP_USER_AGENT  Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)  
PATH  /bin:/usr/bin  
QUERY_STRING  no value  
REDIRECT_STATUS  200  
REMOTE_ADDR  85.48.128.183  
REMOTE_PORT  2542  
REQUEST_METHOD  GET  
REQUEST_URI  /gallery/phpinfo.php  
SCRIPT_FILENAME  /home/bsbphoto/public_html/gallery/phpinfo.php  
SCRIPT_NAME  /gallery/phpinfo.php  
SERVER_ADDR  74.86.102.12  
SERVER_ADMIN  webmaster@bsbphotos.net  
SERVER_NAME  www.bsbphotos.net  
SERVER_PORT  80  
SERVER_PROTOCOL  HTTP/1.1  
SERVER_SIGNATURE  <address>Protected by Mod Security v2.5.7 Server at www.bsbphotos.net Port 80</address>  
SERVER_SOFTWARE  Protected by Mod Security v2.5.7  
UNIQUE_ID  Sk@7gEt@nEQAAGy8TakAAAAQ  


PHP Variables
Variable Value
PHP_SELF  phpinfo.php  
_REQUEST["bsbphotos_data"] YTo1OntzOjI6IklEIjtzOjMyOiJhZWFkMDkyNTJmNjIxZjJlMDkzNTJiYWM2OTRjNWE0YyI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJzcGFuaXNoIjtzOjM6ImxpdiI7YTowOnt9czozOiJsYXAiO2k6NDt9
_REQUEST["44b3a45004278165a9d3670ac9fd9b3c"] 224e4ff03be9c454b7388558772b8b67
_REQUEST["__gads"] ID=a076a17e9be5c40e:T=1239889032:S=ALNI_MavEXeGOiDHFCPa-a69j7xsGufnEw
_COOKIE["bsbphotos_data"] YTo1OntzOjI6IklEIjtzOjMyOiJhZWFkMDkyNTJmNjIxZjJlMDkzNTJiYWM2OTRjNWE0YyI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJzcGFuaXNoIjtzOjM6ImxpdiI7YTowOnt9czozOiJsYXAiO2k6NDt9
_COOKIE["44b3a45004278165a9d3670ac9fd9b3c"] 224e4ff03be9c454b7388558772b8b67
_COOKIE["__gads"] ID=a076a17e9be5c40e:T=1239889032:S=ALNI_MavEXeGOiDHFCPa-a69j7xsGufnEw
_SERVER["DOCUMENT_ROOT"] /home/bsbphoto/public_html
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["HTTP_ACCEPT"] image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
_SERVER["HTTP_ACCEPT_LANGUAGE"] es
_SERVER["HTTP_CONNECTION"] Keep-Alive
_SERVER["HTTP_COOKIE"] bsbphotos_data=YTo1OntzOjI6IklEIjtzOjMyOiJhZWFkMDkyNTJmNjIxZjJlMDkzNTJiYWM2OTRjNWE0YyI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJzcGFuaXNoIjtzOjM6ImxpdiI7YTowOnt9czozOiJsYXAiO2k6NDt9; 44b3a45004278165a9d3670ac9fd9b3c=224e4ff03be9c454b7388558772b8b67; __gads=ID=a076a17e9be5c40e:T=1239889032:S=ALNI_MavEXeGOiDHFCPa-a69j7xsGufnEw
_SERVER["HTTP_HOST"] www.bsbphotos.net
_SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
_SERVER["PATH"] /bin:/usr/bin
_SERVER["QUERY_STRING"] no value
_SERVER["REDIRECT_STATUS"] 200
_SERVER["REMOTE_ADDR"] 85.48.128.183
_SERVER["REMOTE_PORT"] 2542
_SERVER["REQUEST_METHOD"] GET
_SERVER["REQUEST_URI"] /gallery/phpinfo.php
_SERVER["SCRIPT_FILENAME"] /home/bsbphoto/public_html/gallery/phpinfo.php
_SERVER["SCRIPT_NAME"] phpinfo.php
_SERVER["SERVER_ADDR"] 74.86.102.12
_SERVER["SERVER_ADMIN"] webmaster@bsbphotos.net
_SERVER["SERVER_NAME"] www.bsbphotos.net
_SERVER["SERVER_PORT"] 80
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["SERVER_SIGNATURE"] <address>Protected by Mod Security v2.5.7 Server at www.bsbphotos.net Port 80</address>  
_SERVER["SERVER_SOFTWARE"] Protected by Mod Security v2.5.7
_SERVER["UNIQUE_ID"] Sk@7gEt@nEQAAGy8TakAAAAQ
_SERVER["PHP_SELF"] phpinfo.php
_SERVER["REQUEST_TIME"] 1246739329
_SERVER["argv"] Array
(
)
 
_SERVER["argc"] 0
_ENV["DOCUMENT_ROOT"] /home/bsbphoto/public_html
_ENV["GATEWAY_INTERFACE"] CGI/1.1
_ENV["HTTP_ACCEPT"] image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
_ENV["HTTP_ACCEPT_ENCODING"] gzip, deflate
_ENV["HTTP_ACCEPT_LANGUAGE"] es
_ENV["HTTP_CONNECTION"] Keep-Alive
_ENV["HTTP_COOKIE"] bsbphotos_data=YTo1OntzOjI6IklEIjtzOjMyOiJhZWFkMDkyNTJmNjIxZjJlMDkzNTJiYWM2OTRjNWE0YyI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJzcGFuaXNoIjtzOjM6ImxpdiI7YTowOnt9czozOiJsYXAiO2k6NDt9; 44b3a45004278165a9d3670ac9fd9b3c=224e4ff03be9c454b7388558772b8b67; __gads=ID=a076a17e9be5c40e:T=1239889032:S=ALNI_MavEXeGOiDHFCPa-a69j7xsGufnEw
_ENV["HTTP_HOST"] www.bsbphotos.net
_ENV["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
_ENV["PATH"] /bin:/usr/bin
_ENV["QUERY_STRING"] no value
_ENV["REDIRECT_STATUS"] 200
_ENV["REMOTE_ADDR"] 85.48.128.183
_ENV["REMOTE_PORT"] 2542
_ENV["REQUEST_METHOD"] GET
_ENV["REQUEST_URI"] /gallery/phpinfo.php
_ENV["SCRIPT_FILENAME"] /home/bsbphoto/public_html/gallery/phpinfo.php
_ENV["SCRIPT_NAME"] /gallery/phpinfo.php
_ENV["SERVER_ADDR"] 74.86.102.12
_ENV["SERVER_ADMIN"] webmaster@bsbphotos.net
_ENV["SERVER_NAME"] www.bsbphotos.net
_ENV["SERVER_PORT"] 80
_ENV["SERVER_PROTOCOL"] HTTP/1.1
_ENV["SERVER_SIGNATURE"] <address>Protected by Mod Security v2.5.7 Server at www.bsbphotos.net Port 80</address>  
_ENV["SERVER_SOFTWARE"] Protected by Mod Security v2.5.7
_ENV["UNIQUE_ID"] Sk@7gEt@nEQAAGy8TakAAAAQ


PHP License
This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program 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.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.
 

Powered by Coppermine Photo Gallery
Modded by Stramm
« Last Edit: July 04, 2009, 10:50:29 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: gallery is a diferent domain
« Reply #9 on: July 04, 2009, 10:40:45 pm »

OK, so you need to use:

Code: [Select]
include "/home/bsbphoto/public_html/gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("/home/bsbphoto/public_html/gallery/cpmfetch/cpmfetch_config.php");
« Last Edit: July 04, 2009, 10:49:31 pm by Nibbler »
Logged

nicky

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Re: gallery is a diferent domain
« Reply #10 on: July 04, 2009, 10:45:52 pm »

I still have this error

Quote
Warning: include( /home/bsbphoto/public_html/gallery/cpmfetch/cpmfetch.php) [function.include]: failed to open stream: No such file or directory in /home/backstre/public_html/footer.php on line 132

Warning: include() [function.include]: Failed opening ' /home/bsbphoto/public_html/gallery/cpmfetch/cpmfetch.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/backstre/public_html/footer.php on line 132

Fatal error: Class 'cpm' not found in /home/backstre/public_html/footer.php on line 133
Logged

Nibbler

  • Guest
Re: gallery is a diferent domain
« Reply #11 on: July 04, 2009, 10:49:57 pm »

There was an extra space in there before the /home. Remove it and try again.
Logged

nicky

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Re: gallery is a diferent domain
« Reply #12 on: July 04, 2009, 10:56:58 pm »

Still doesn't work. Same error
Logged

hohilfay

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: gallery is a diferent domain
« Reply #13 on: July 06, 2009, 10:41:21 am »

sorry to butt in but are you doing this with an iFrame? onto your main site
Logged

nicky

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Re: gallery is a diferent domain
« Reply #14 on: July 10, 2009, 01:16:34 pm »

Yes, it is an iframe inside my main site
Logged

georgetamia

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Re: gallery is a diferent domain
« Reply #15 on: July 12, 2009, 03:58:28 am »

Go to phpinfo.php in your browser and copy/paste the page here.

How do you go about finding this "phpinfo.php" file?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: gallery is a diferent domain
« Reply #16 on: July 12, 2009, 04:57:40 pm »

http://yoursite.tld/your_coppermine_folder/phpinfo.php as suggested in the docs. Don't try to hijack other's threads.
Logged

capecodgal

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 123
Re: gallery is a diferent domain
« Reply #17 on: July 13, 2009, 10:46:40 pm »

Yes, it is an iframe inside my main site

Hi Nicky,

The only way I managed to get this to work was to create the php file that called the fetch to load on the gallery server then in the iframe use the http link to the php file on the gallery server; there may be another way but if it is 2 different servers and not just 2 different domains then this is the only way I was able to accomplish that.

So on your gallery server.... create the php file with your cpmfetch code and verify that file loads

1) In the main directory put the php file that has the fetch code, code should look like this just like Nibbler showed you:

Code: [Select]
/home/bsbphoto/public_html/gallery/cpmfetch/......  (and so on)

2) verify this file loads correctly: http://www.bsbphotos.net/FILE.php  (replace file.php with whatever you named the file)

3) in the main website link the php file via your iframe script

My only other suggestion is to be sure you setup your fetch code to open the photos in a new window; otherwise it will try to load the gallery within the frame when clicked.

Logged

nicky

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Re: gallery is a diferent domain
« Reply #18 on: October 06, 2009, 12:51:44 pm »

3) in the main website link the php file via your iframe script

How must I do that??? How can I link this there???
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 20 queries.