Files
        @ 59de04d99da6
    
        
              Branch filter: 
        
    Location: SlatePermutate/captcha_img.php - annotation
        
            
            59de04d99da6
            1.1 KiB
            text/x-php
        
        
    
    Fix support for displaying the number of credit hours in a permutation for schools with course slots, reported by bot10berg.
https://www.facebook.com/zimjimmy/posts/231316953666045?comment_id=886608&offset=0&total_comments=11
The linked schedule was displaying 24 credit hours instead of 14
credit hours because there were two course slots with two sections
each (each of these course slots having 4 credit hours) causing 8
credit hours to be doubly-counted.
    https://www.facebook.com/zimjimmy/posts/231316953666045?comment_id=886608&offset=0&total_comments=11
The linked schedule was displaying 24 credit hours instead of 14
credit hours because there were two course slots with two sections
each (each of these course slots having 4 credit hours) causing 8
credit hours to be doubly-counted.
43acd1a78fa7 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 7b489f5ccba0 9897baead6b3 9897baead6b3 9897baead6b3 9897baead6b3 7b489f5ccba0 7b489f5ccba0  | <?php /* -*- mode: php; -*- */
/*
 * Copyright 2010 Nathan Gelderloos, Ethan Zonca, Nathan Phillip Brink
 *
 * This file is part of SlatePermutate.
 *
 * SlatePermutate is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * SlatePermutate 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.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with SlatePermutate.  If not, see <http://www.gnu.org/licenses/>.
 */
require_once('inc/class.page.php');
if (!$use_captcha)
  page::show_404('Captchas are disabled.');
/* Make sure that securimage works without our own sessions */
page::session_start();
require_once 'securimage/securimage.php';
$securimage = new Securimage();
echo $securimage->show();
 |