Changeset 757


Ignore:
Timestamp:
Dec 10, 2021 12:01:14 AM (2 years ago)
Author:
anonymous
Message:

Fix depreciated notices

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/_config.inc.php

    r678 r757  
    2828
    2929// The name of the CLI.
    30 $cli_executed = basename($_SERVER['argv'][0]);
     30$cli_name = basename($_SERVER['argv'][0]);
    3131
    3232// Enforce "relaxed" directory location, if set by the called script.
     
    5050    }
    5151    if (!$db_auth_file) {
    52         printf("%s error: the current directory must be common site directory (i.e. the parent directory of the document root) AND a db_auth file must exist within two directory levels.\n", $cli_executed);
     52        printf("%s error: the current directory must be common site directory (i.e. the parent directory of the document root) AND a db_auth file must exist within two directory levels.\n", $cli_name);
    5353        exit(1);
    5454    }
    5555    if (fileowner($db_auth_file) != getmyuid()) {
    56         printf("%s error: you must execute this script as the owner of the web files.\n", $cli_executed);
     56        printf("%s error: you must execute this script as the owner of the web files.\n", $cli_name);
    5757        exit(1);
    5858    }
  • trunk/bin/init_codebase_tables.cli.php

    r699 r757  
    183183                // User didn't provide custom config. Use sane defaults.
    184184                require_once CODEBASE_PATH . '/lib/DBSessionHandler.inc.php';
     185                // Creating a session here causes a “Session save handler cannot be changed after headers have already been sent” warning. This can be ignored.
    185186                $db_session = new DBSessionHandler($app->db, array(
    186187                    'db_table' => 'session_tbl',
  • trunk/lib/ACL.inc.php

    r655 r757  
    239239    * @since    14 Jun 2006 22:39:29
    240240    */
    241     public function add($name, $parent=null, $type)
     241    public function add($name, $parent, $type)
    242242    {
    243243        $app =& App::getInstance();
  • trunk/lib/Auth_SQL.inc.php

    r735 r757  
    10591059     *
    10601060     */
    1061     public function setPassword($user_id=null, $password, $hash_type=null)
     1061    public function setPassword($user_id, $password, $hash_type=null)
    10621062    {
    10631063        $app =& App::getInstance();
  • trunk/lib/Utilities.inc.php

    r752 r757  
    622622
    623623/*
    624 *
    625 *
    626 * @access   public
    627 * @param
    628 * @return
     624* Calculate a prorated amount for the duration between two dates.
     625*
     626* @access   public
     627* @param    float   $amount     Original price per duration.
     628* @param    string  $duration   Unit of time for the original price (`year`, `quarter`, `month`, or `day`).
     629* @param    string  $start_date Start date of prorated period (strtotime-compatible date).
     630* @param    string  $end_date   End date of prorated period (strtotime-compatible date).
     631* @return   float               The prorated amount.
    629632* @author   Quinn Comendant <quinn@strangecode.com>
    630633* @since    03 Nov 2021 22:44:30
    631634*/
    632 function prorate($amount, $duration='year', $start_date, $end_date)
     635function prorate($amount, $duration, $start_date, $end_date)
    633636{
    634637    $app =& App::getInstance();
Note: See TracChangeset for help on using the changeset viewer.