Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006 $phpcas_path = '../../source/';
00007
00009
00011
00012
00013 $cas_host = '192.168.178.254';
00014
00015
00016 $cas_context = '/cas';
00017
00018
00019 $cas_port = 8443;
00020
00021
00022 $cas_server_ca_cert_path = '/usr/local/share/ca-certificates/3some-cacert.crt';
00023
00025
00027
00028
00029
00030 $cas_real_hosts = array (
00031 '192.168.178.254'
00032 );
00033
00034
00035
00036 $db = 'mysql:host=localhost;dbname=phpcas';
00037
00038
00039 $db_user = 'root';
00040 $db_password = 'test1234';
00041 $db_table = 'phpcas';
00042
00044
00046
00047
00048 if ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on'){
00049 $curbase = 'https://'.$_SERVER['SERVER_NAME'];
00050 }else{
00051 $curbase = 'http://'.$_SERVER['SERVER_NAME'];
00052 }
00053 if ($_SERVER['SERVER_PORT'] != 80 && $_SERVER['SERVER_PORT'] != 443)
00054 $curbase .= ':'.$_SERVER['SERVER_PORT'];
00055
00056 $curdir = dirname($_SERVER['REQUEST_URI'])."/";
00057
00058
00059 $serviceUrl = $curbase.$curdir.'example_service.php';
00060
00061 $serviceUrl2 = $curbase.$curdir.'example_service_that_proxies.php';
00062
00063 $cas_url = 'https://'.$cas_host;
00064 if ($cas_port != '443')
00065 {
00066 $cas_url = $cas_url.':'.$cas_port;
00067 }
00068 $cas_url = $cas_url.$cas_context;
00069
00070
00071
00072
00073
00074 session_name('session_for:'.preg_replace('/[^a-z0-9-]/i', '_', basename($_SERVER['SCRIPT_NAME'])));
00075 ?>