[Clipart] cchost test installation for Open Clip Art Library

Bryce Harrington bryce at bryceharrington.org
Sat Feb 11 20:33:12 PST 2006


On Sat, Feb 11, 2006 at 11:23:32PM -0500, Jonadab the Unsightly One wrote:
> Jon Phillips <jon at rejon.org> writes:
> 
> > > > Add Open Clip Art Library logo to header
> > > 
> > > Yes, quite.
> > 
> > Would you take on figuring this task out please?
> 
> Initially, I tracked this as far as cctemplates/page.xml
> 
> Around line 81, you see this:
>           <h1 id="cc_site_name"><a href='${root-url}' title="${site-title}">${banner-html}</a></h1>
> 
> This looks to me like a scalar variable called $banner-html being
> interpolated, but that's a Perl programmer's perspective on the
> matter, so I could be mistaken.  Nonetheless, proceeding on this
> hunch, I started looking for where such a variable might be set,
> which leads me to ccadmin/cc-install-db.php around line 435 and
> following, where it appears a number of things like this are being
> set, and in particular this line:
>             'banner-html' =>  $vars['sitename']['v'], 
> 
> There's some kind of subscripting going on there, but I don't know
> anything about PHP datatypes, and the only additional references I can

I think that may be a 2D array, and my guess is that 'v' indicates
'value'.  I've never seen anything like this before, though, so I could
be wrong.

> find to the string 'sitename' are in ccadmin/index.php  The most
> apparently relevant is in the function get_default_values, which
> contains this line:
>     $v['sitename']   = 'ccHost - ' . $_SERVER['HTTP_HOST'];
> 
> However, I think I've gotten lost somewhere along the way, because
> that would seem to indicate that the banner-html should be something
> like "ccHost - www.openclipart.org", but on the site I am seeing
> something more like "Open Clip Art Library", so there must be
> something I don't understand going on in the PHP code.

I also suspect some of the strings come out of the database.  Now that I
have admin access I'm going to poke around for those...

Bryce




More information about the clipart mailing list