PHP Classes
elePHPant
Icontem

File: CiscoIPPhone/Framework.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tyler Winfield  >  Cisco IP Phone Framework  >  CiscoIPPhone/Framework.php  >  Download  
File: CiscoIPPhone/Framework.php
Role: Auxiliary script
Content type: text/plain
Description: core file for including framework in PHP applications
Class: Cisco IP Phone Framework
Generate XML for services of Cisco IP phones
Author: By
Last change:
Date: 4 years ago
Size: 588 bytes
 

Contents

Class file image Download
<?php

$include_path
= explode(':', get_include_path());
$services_path = 'CiscoIPPhone/XMLServices';
for(
$i = 0; $i < count($include_path); $i++)
{
    if(
is_dir($include_path[$i].'/'.$services_path))
    {
        if(
$services_dir = opendir($include_path[$i].'/'.$services_path))
        {
            while((
$include_file = readdir($services_dir)) !== false)
            {
                if (
$include_file != "." && $include_file != "..") {
                    require_once(
$services_path.'/'.$include_file);
                }
            }
        }
    }
}

?>