RSS

(root)/drupal/7-fic : 14.1.14 : includes/common.inc

« back to all changes in this revision

Viewing changes to includes/common.inc

bzr
2008-12-20 19:00:05
This revision was merged to the branch mainline in revision 316.
Revision ID: bzr@web3.fourkitchens.com-20081220190005-uq28yg3zmtg98v4w
Scheduled update from HEAD: Sat Dec 20 19:00:05 GMT 2008

Show diffs side-by-side

added added

removed removed

1
1
<?php
2
 
// $Id: common.inc,v 1.837 2008/12/12 16:07:13 dries Exp $
 
2
// $Id: common.inc,v 1.838 2008/12/20 18:24:33 dries Exp $
3
3
 
4
4
/**
5
5
 * @file
1532
1532
 *
1533
1533
 * @param $path
1534
1534
 *   The Drupal path being linked to, such as "admin/content/node", or an
1535
 
 *   existing URL like "http://drupal.org/".  The special path
 
1535
 *   existing URL like "http://drupal.org/". The special path
1536
1536
 *   '<front>' may also be given and will generate the site's base URL.
1537
1537
 * @param $options
1538
1538
 *   An associative array of additional options, with the following keys:
2777
2777
  // Note that it may be important that our $random_state is passed
2778
2778
  // through md5() prior to being rolled into $output, that the two md5()
2779
2779
  // invocations are different, and that the extra input into the first one -
2780
 
  // the microtime() - is prepended rather than appended.  This is to avoid
 
2780
  // the microtime() - is prepended rather than appended. This is to avoid
2781
2781
  // directly leaking $random_state via the $output stream, which could
2782
2782
  // allow for trivial prediction of further "random" numbers.
2783
2783
  while (strlen($output) < $count) {
3045
3045
  $searchdir[] = 'sites/all/' . $directory;
3046
3046
 
3047
3047
  // The 'profiles' directory contains pristine collections of modules and
3048
 
  // themes as organized by a distribution.  It is pristine in the same way
 
3048
  // themes as organized by a distribution. It is pristine in the same way
3049
3049
  // that /modules is pristine for core; users should avoid changing anything
3050
3050
  // there in favor of sites/all or sites/<domain> directories.
3051
3051
  if (file_exists("profiles/$profile/$directory")) {

Loggerhead 1.17 is a web-based interface for Bazaar branches