Apache2-AuthAny

 view release on metacpan or  search on metacpan

examples/demo-gate/gate.css  view on Meta::CPAN

#gateBody 
{
  width:760px;
  background-color:#FCFCFC;
  font-family:Verdana,Arial,Helvetica,sans-serif;
  margin: 5px 10px;
  padding:0;
  font-size: 13px;
}

#gateBody p
{
  font-size: 0.8em;
  color: #888888;
  font-weight: normal;
  line-height: 1.2;
}

#gateBody .gate-message
{
  background: yellow; width: 850px; border: 2px solid; padding: 10px; margin-bottom: 10px
}

#gateBody h1
{ 
  font-size:40px;
  margin:0 0 0.4em;
}

#gateBody h2
{ 
  color:#555555;
  margin:0 0 0.4em;
  font-size: 1.2em;
}

.gate-providers
{
  width: 700px;
  height: 200px;
  border: 2px solid;
  background: #EEEECC;
}

.gate-provider
{
  margin: 5px 3px;
  float: left;
}

.gate-provider button
{ 
  background: #FFFFFF;
  cursor: pointer;
  margin-right: 15px; /* IE only */
  height: 45px;
  width: 150px;

   border-top : 1px solid #000000;
   border-left : 1px solid #000000;
   border-bottom : 3px solid gray;
   border-right : 3px solid gray;
}

examples/demo/d1/demo.php  view on Meta::CPAN

<?php
require_once "../demo-common.php";

$style = <<<STY
<style>
 $style_common
.envVars { background: #FFFFFF; padding: 5px; border: 1px solid; margin: 20px 0 0 10px; 
           width: 350px; font-family: "Courier New", monospace;
         }
.envVars p {font-family: Arial,Helvetica,sans-serif; font-weight: bold; }
.htaccess { padding: 5px; }
.amz { font-weight: bold; color: #E47911 }
</style>
STY;

$script = <<<SCRIPT
<script> 

examples/demo/d1/demo.php  view on Meta::CPAN

          }
      }
   }

   $env_vars_ident .= '</dl>';
}

function htaccess($dir, $current_p = 0) {
  global $demo_dir;
  global $current_dir;
  $highlight = $current_p ? 'border: 2px solid; background: #FFFFFF;' : 'background: #CCCCCC; border-bottom: 1px solid;';
  $htaccess = file_get_contents("$demo_dir/$dir/.htaccess");
  $block = <<<BLOCK
<div class="htaccess" style="$highlight">
  <h3>$dir</h3>
  <pre>
$htaccess
  </pre>
</div>
BLOCK;

examples/demo/d1/demo.php  view on Meta::CPAN


?>

<html>
  <head>
    <title>hello <?= $current_dir ?></title>
    <?= $style ?>
  </head>
  <body>
<div align="center">
<div align="left" style="background: #CCEEFF; padding: 5px; border: 1px solid #CCAAFF; width: 1024px">
<div class="header">
   <span style="font-size: 50px; font-weight: bold; float: left;">Apache2::AuthAny</span>
   <div style="float: right; padding-right: 20px"><?= $ident_block ?></div>
   <div style="clear: both"></div>
</div>
<div id="tabs">
 <ul>
   <?= $tabs ?>
 </ul>
</div>

examples/demo/d2/demo.php  view on Meta::CPAN

<?php
require_once "../demo-common.php";

$style = <<<STY
<style>
 $style_common
.envVars { background: #FFFFFF; padding: 5px; border: 1px solid; margin: 20px 0 0 10px; 
           width: 350px; font-family: "Courier New", monospace;
         }
.envVars p {font-family: Arial,Helvetica,sans-serif; font-weight: bold; }
.htaccess { padding: 5px; }
.amz { font-weight: bold; color: #E47911 }
</style>
STY;

$script = <<<SCRIPT
<script> 

examples/demo/d2/demo.php  view on Meta::CPAN

          }
      }
   }

   $env_vars_ident .= '</dl>';
}

function htaccess($dir, $current_p = 0) {
  global $demo_dir;
  global $current_dir;
  $highlight = $current_p ? 'border: 2px solid; background: #FFFFFF;' : 'background: #CCCCCC; border-bottom: 1px solid;';
  $htaccess = file_get_contents("$demo_dir/$dir/.htaccess");
  $block = <<<BLOCK
<div class="htaccess" style="$highlight">
  <h3>$dir</h3>
  <pre>
$htaccess
  </pre>
</div>
BLOCK;

examples/demo/d2/demo.php  view on Meta::CPAN


?>

<html>
  <head>
    <title>hello <?= $current_dir ?></title>
    <?= $style ?>
  </head>
  <body>
<div align="center">
<div align="left" style="background: #CCEEFF; padding: 5px; border: 1px solid #CCAAFF; width: 1024px">
<div class="header">
   <span style="font-size: 50px; font-weight: bold; float: left;">Apache2::AuthAny</span>
   <div style="float: right; padding-right: 20px"><?= $ident_block ?></div>
   <div style="clear: both"></div>
</div>
<div id="tabs">
 <ul>
   <?= $tabs ?>
 </ul>
</div>

examples/demo/d3/demo.php  view on Meta::CPAN

<?php
require_once "../demo-common.php";

$style = <<<STY
<style>
 $style_common
.envVars { background: #FFFFFF; padding: 5px; border: 1px solid; margin: 20px 0 0 10px; 
           width: 350px; font-family: "Courier New", monospace;
         }
.envVars p {font-family: Arial,Helvetica,sans-serif; font-weight: bold; }
.htaccess { padding: 5px; }
.amz { font-weight: bold; color: #E47911 }
</style>
STY;

$script = <<<SCRIPT
<script> 

examples/demo/d3/demo.php  view on Meta::CPAN

          }
      }
   }

   $env_vars_ident .= '</dl>';
}

function htaccess($dir, $current_p = 0) {
  global $demo_dir;
  global $current_dir;
  $highlight = $current_p ? 'border: 2px solid; background: #FFFFFF;' : 'background: #CCCCCC; border-bottom: 1px solid;';
  $htaccess = file_get_contents("$demo_dir/$dir/.htaccess");
  $block = <<<BLOCK
<div class="htaccess" style="$highlight">
  <h3>$dir</h3>
  <pre>
$htaccess
  </pre>
</div>
BLOCK;

examples/demo/d3/demo.php  view on Meta::CPAN


?>

<html>
  <head>
    <title>hello <?= $current_dir ?></title>
    <?= $style ?>
  </head>
  <body>
<div align="center">
<div align="left" style="background: #CCEEFF; padding: 5px; border: 1px solid #CCAAFF; width: 1024px">
<div class="header">
   <span style="font-size: 50px; font-weight: bold; float: left;">Apache2::AuthAny</span>
   <div style="float: right; padding-right: 20px"><?= $ident_block ?></div>
   <div style="clear: both"></div>
</div>
<div id="tabs">
 <ul>
   <?= $tabs ?>
 </ul>
</div>

examples/demo/d4/demo.php  view on Meta::CPAN

<?php
require_once "../demo-common.php";

$style = <<<STY
<style>
 $style_common
.envVars { background: #FFFFFF; padding: 5px; border: 1px solid; margin: 20px 0 0 10px; 
           width: 350px; font-family: "Courier New", monospace;
         }
.envVars p {font-family: Arial,Helvetica,sans-serif; font-weight: bold; }
.htaccess { padding: 5px; }
.amz { font-weight: bold; color: #E47911 }
</style>
STY;

$script = <<<SCRIPT
<script> 

examples/demo/d4/demo.php  view on Meta::CPAN

          }
      }
   }

   $env_vars_ident .= '</dl>';
}

function htaccess($dir, $current_p = 0) {
  global $demo_dir;
  global $current_dir;
  $highlight = $current_p ? 'border: 2px solid; background: #FFFFFF;' : 'background: #CCCCCC; border-bottom: 1px solid;';
  $htaccess = file_get_contents("$demo_dir/$dir/.htaccess");
  $block = <<<BLOCK
<div class="htaccess" style="$highlight">
  <h3>$dir</h3>
  <pre>
$htaccess
  </pre>
</div>
BLOCK;

examples/demo/d4/demo.php  view on Meta::CPAN


?>

<html>
  <head>
    <title>hello <?= $current_dir ?></title>
    <?= $style ?>
  </head>
  <body>
<div align="center">
<div align="left" style="background: #CCEEFF; padding: 5px; border: 1px solid #CCAAFF; width: 1024px">
<div class="header">
   <span style="font-size: 50px; font-weight: bold; float: left;">Apache2::AuthAny</span>
   <div style="float: right; padding-right: 20px"><?= $ident_block ?></div>
   <div style="clear: both"></div>
</div>
<div id="tabs">
 <ul>
   <?= $tabs ?>
 </ul>
</div>

examples/demo/d5/demo.php  view on Meta::CPAN

<?php
require_once "../demo-common.php";

$style = <<<STY
<style>
 $style_common
.envVars { background: #FFFFFF; padding: 5px; border: 1px solid; margin: 20px 0 0 10px; 
           width: 350px; font-family: "Courier New", monospace;
         }
.envVars p {font-family: Arial,Helvetica,sans-serif; font-weight: bold; }
.htaccess { padding: 5px; }
.amz { font-weight: bold; color: #E47911 }
</style>
STY;

$script = <<<SCRIPT
<script> 

examples/demo/d5/demo.php  view on Meta::CPAN

          }
      }
   }

   $env_vars_ident .= '</dl>';
}

function htaccess($dir, $current_p = 0) {
  global $demo_dir;
  global $current_dir;
  $highlight = $current_p ? 'border: 2px solid; background: #FFFFFF;' : 'background: #CCCCCC; border-bottom: 1px solid;';
  $htaccess = file_get_contents("$demo_dir/$dir/.htaccess");
  $block = <<<BLOCK
<div class="htaccess" style="$highlight">
  <h3>$dir</h3>
  <pre>
$htaccess
  </pre>
</div>
BLOCK;

examples/demo/d5/demo.php  view on Meta::CPAN


?>

<html>
  <head>
    <title>hello <?= $current_dir ?></title>
    <?= $style ?>
  </head>
  <body>
<div align="center">
<div align="left" style="background: #CCEEFF; padding: 5px; border: 1px solid #CCAAFF; width: 1024px">
<div class="header">
   <span style="font-size: 50px; font-weight: bold; float: left;">Apache2::AuthAny</span>
   <div style="float: right; padding-right: 20px"><?= $ident_block ?></div>
   <div style="clear: both"></div>
</div>
<div id="tabs">
 <ul>
   <?= $tabs ?>
 </ul>
</div>

examples/demo/d6/demo.php  view on Meta::CPAN

<?php
require_once "../demo-common.php";

$style = <<<STY
<style>
 $style_common
.envVars { background: #FFFFFF; padding: 5px; border: 1px solid; margin: 20px 0 0 10px; 
           width: 350px; font-family: "Courier New", monospace;
         }
.envVars p {font-family: Arial,Helvetica,sans-serif; font-weight: bold; }
.htaccess { padding: 5px; }
.amz { font-weight: bold; color: #E47911 }
</style>
STY;

$script = <<<SCRIPT
<script> 

examples/demo/d6/demo.php  view on Meta::CPAN

          }
      }
   }

   $env_vars_ident .= '</dl>';
}

function htaccess($dir, $current_p = 0) {
  global $demo_dir;
  global $current_dir;
  $highlight = $current_p ? 'border: 2px solid; background: #FFFFFF;' : 'background: #CCCCCC; border-bottom: 1px solid;';
  $htaccess = file_get_contents("$demo_dir/$dir/.htaccess");
  $block = <<<BLOCK
<div class="htaccess" style="$highlight">
  <h3>$dir</h3>
  <pre>
$htaccess
  </pre>
</div>
BLOCK;

examples/demo/d6/demo.php  view on Meta::CPAN


?>

<html>
  <head>
    <title>hello <?= $current_dir ?></title>
    <?= $style ?>
  </head>
  <body>
<div align="center">
<div align="left" style="background: #CCEEFF; padding: 5px; border: 1px solid #CCAAFF; width: 1024px">
<div class="header">
   <span style="font-size: 50px; font-weight: bold; float: left;">Apache2::AuthAny</span>
   <div style="float: right; padding-right: 20px"><?= $ident_block ?></div>
   <div style="clear: both"></div>
</div>
<div id="tabs">
 <ul>
   <?= $tabs ?>
 </ul>
</div>

examples/demo/d7/demo.php  view on Meta::CPAN

<?php
require_once "../demo-common.php";

$style = <<<STY
<style>
 $style_common
.envVars { background: #FFFFFF; padding: 5px; border: 1px solid; margin: 20px 0 0 10px; 
           width: 350px; font-family: "Courier New", monospace;
         }
.envVars p {font-family: Arial,Helvetica,sans-serif; font-weight: bold; }
.htaccess { padding: 5px; }
.amz { font-weight: bold; color: #E47911 }
</style>
STY;

$script = <<<SCRIPT
<script> 

examples/demo/d7/demo.php  view on Meta::CPAN

          }
      }
   }

   $env_vars_ident .= '</dl>';
}

function htaccess($dir, $current_p = 0) {
  global $demo_dir;
  global $current_dir;
  $highlight = $current_p ? 'border: 2px solid; background: #FFFFFF;' : 'background: #CCCCCC; border-bottom: 1px solid;';
  $htaccess = file_get_contents("$demo_dir/$dir/.htaccess");
  $block = <<<BLOCK
<div class="htaccess" style="$highlight">
  <h3>$dir</h3>
  <pre>
$htaccess
  </pre>
</div>
BLOCK;

examples/demo/d7/demo.php  view on Meta::CPAN


?>

<html>
  <head>
    <title>hello <?= $current_dir ?></title>
    <?= $style ?>
  </head>
  <body>
<div align="center">
<div align="left" style="background: #CCEEFF; padding: 5px; border: 1px solid #CCAAFF; width: 1024px">
<div class="header">
   <span style="font-size: 50px; font-weight: bold; float: left;">Apache2::AuthAny</span>
   <div style="float: right; padding-right: 20px"><?= $ident_block ?></div>
   <div style="clear: both"></div>
</div>
<div id="tabs">
 <ul>
   <?= $tabs ?>
 </ul>
</div>

examples/demo/d8/demo.php  view on Meta::CPAN

<?php
require_once "../demo-common.php";

$style = <<<STY
<style>
 $style_common
.envVars { background: #FFFFFF; padding: 5px; border: 1px solid; margin: 20px 0 0 10px; 
           width: 350px; font-family: "Courier New", monospace;
         }
.envVars p {font-family: Arial,Helvetica,sans-serif; font-weight: bold; }
.htaccess { padding: 5px; }
.amz { font-weight: bold; color: #E47911 }
</style>
STY;

$script = <<<SCRIPT
<script> 

examples/demo/d8/demo.php  view on Meta::CPAN

          }
      }
   }

   $env_vars_ident .= '</dl>';
}

function htaccess($dir, $current_p = 0) {
  global $demo_dir;
  global $current_dir;
  $highlight = $current_p ? 'border: 2px solid; background: #FFFFFF;' : 'background: #CCCCCC; border-bottom: 1px solid;';
  $htaccess = file_get_contents("$demo_dir/$dir/.htaccess");
  $block = <<<BLOCK
<div class="htaccess" style="$highlight">
  <h3>$dir</h3>
  <pre>
$htaccess
  </pre>
</div>
BLOCK;

examples/demo/d8/demo.php  view on Meta::CPAN


?>

<html>
  <head>
    <title>hello <?= $current_dir ?></title>
    <?= $style ?>
  </head>
  <body>
<div align="center">
<div align="left" style="background: #CCEEFF; padding: 5px; border: 1px solid #CCAAFF; width: 1024px">
<div class="header">
   <span style="font-size: 50px; font-weight: bold; float: left;">Apache2::AuthAny</span>
   <div style="float: right; padding-right: 20px"><?= $ident_block ?></div>
   <div style="clear: both"></div>
</div>
<div id="tabs">
 <ul>
   <?= $tabs ?>
 </ul>
</div>

examples/demo/demo-common.php  view on Meta::CPAN

<?php

$style_common = <<<STY
.header { background: #EEFFFF; border-bottom: 1px solid }
 h2 {background: #EEEEEE}
 body  { font-family: Arial,Helvetica,sans-serif;  background: #EEEEFF; }

    #tabs ul {
		list-style: none;
		padding: 0;
		margin: 0;
    }
    
	#tabs li {
		float: left;
		border: 1px solid #bbb;
		border-bottom-width: 0;
		margin: 0;
    }
    
	#tabs a {
		text-decoration: none;
		display: block;
		background: #eee;
		padding: 0.24em 1em;
		color: #00c;
		width: 4em;
		text-align: center;
    }
	
	#tabs a:hover {
		background: #ddf;
	}
	
	#tabs #selected {
		border-color: black;
	}
	
	#tabs #selected a {
		position: relative;
		top: 1px;
		background: white;
		color: black;
		font-weight: bold;
	}
	



STY;

$all_demos = array(

examples/demo/demo-common.php  view on Meta::CPAN


TAB;
}


function page_template($main_content) {
global $tabs;

return <<<HEADER
<div align="center">
  <div align="left" style="background: #CCEEFF; padding: 5px; border: 1px solid #CCAAFF; width: 1024px">
    <div class="header">
      <span style="font-size: 50px; font-weight: bold; ">Apache2::AuthAny</span>
      <div style="float: right; padding-right: 20px"><?= $ident_block ?></div>
      <div style="clear: both"></div>
    </div>
    <div id="tabs">
      <ul>
        $tabs
      </ul>
    </div>

examples/demo/directory-demo.php  view on Meta::CPAN

<?php
require_once "../demo-common.php";

$style = <<<STY
<style>
 $style_common
.envVars { background: #FFFFFF; padding: 5px; border: 1px solid; margin: 20px 0 0 10px; 
           width: 350px; font-family: "Courier New", monospace;
         }
.envVars p {font-family: Arial,Helvetica,sans-serif; font-weight: bold; }
.htaccess { padding: 5px; }
.amz { font-weight: bold; color: #E47911 }
</style>
STY;

$script = <<<SCRIPT
<script> 

examples/demo/directory-demo.php  view on Meta::CPAN

          }
      }
   }

   $env_vars_ident .= '</dl>';
}

function htaccess($dir, $current_p = 0) {
  global $demo_dir;
  global $current_dir;
  $highlight = $current_p ? 'border: 2px solid; background: #FFFFFF;' : 'background: #CCCCCC; border-bottom: 1px solid;';
  $htaccess = file_get_contents("$demo_dir/$dir/.htaccess");
  $block = <<<BLOCK
<div class="htaccess" style="$highlight">
  <h3>$dir</h3>
  <pre>
$htaccess
  </pre>
</div>
BLOCK;

examples/demo/directory-demo.php  view on Meta::CPAN


?>

<html>
  <head>
    <title>hello <?= $current_dir ?></title>
    <?= $style ?>
  </head>
  <body>
<div align="center">
<div align="left" style="background: #CCEEFF; padding: 5px; border: 1px solid #CCAAFF; width: 1024px">
<div class="header">
   <span style="font-size: 50px; font-weight: bold; float: left;">Apache2::AuthAny</span>
   <div style="float: right; padding-right: 20px"><?= $ident_block ?></div>
   <div style="clear: both"></div>
</div>
<div id="tabs">
 <ul>
   <?= $tabs ?>
 </ul>
</div>

examples/demo/index.php  view on Meta::CPAN

<?php
require_once "demo-common.php"; # $style_common, page_template(),
?>

<html>
  <head>
    <title>mod_auth_any Demo</title>
    <style>
        <?= $style_common ?>
        h2 { font-style: italic; }
        .highlight {border: 2px solid; background: #FFFFFF;}
    </style>
  </head>
  <body>

<?php

preg_match('/(.*)\/demo\//', $_SERVER[SCRIPT_FILENAME], $matches);
$current_dir = getcwd();

$current_htaccess = file_get_contents("$current_dir/.htaccess");



( run in 1.122 second using v1.01-cache-2.11-cpan-f56aa216473 )