[1-9][0-9]*)\s?\((?.+)\)(?:\r|\n)#', $commentary, $outComment); // Catch specific information about "use". if( isset($outComment['args']) && is_array($outComment['args']) ){ $infos['use'] = array(); foreach($outComment['args'] as $num => $args){ // Each use preg_match_all('#(?[a-z]+)="(?.*)"(?:,|$)#U', $args, $outArg); // Catch arguments for current use if( isset($outArg['name']) ){ $usePos = $outComment['num'][$num]; // Current use name if( !isset($infos['use'][$usePos]) ){ // Not information actually for this "use" ? $infos['use'][$usePos] = array(); } foreach($outArg['name'] as $numArg => $name){ // Each arguments $infos['use'][$usePos][$name] = $outArg['value'][$numArg]; } } } } } } if( isset($infos['name']) ){ // If informations containt at least a name // $listBridge $listBridge[$out[1]] = $infos; } } } closedir($handle); } return $listBridge; } function createNetworkLink($bridgeName, $arguments){ } if( isset($_REQUEST) && isset($_REQUEST['action']) ){ switch($_REQUEST['action']){ case 'create': if( isset($_REQUEST['bridge']) ){ unset($_REQUEST['action']); $bridge = $_REQUEST['bridge']; unset($_REQUEST['bridge']); // var_dump($_REQUEST);die; $pathBridge = PATH_BRIDGES_RELATIVE . $bridge . '.php'; if( file_exists($pathBridge) ){ require $pathBridge; exit(); } } break; } } $listBridge = searchBridgeInformation(PATH_BRIDGES); // echo '
';
// var_dump($listBridge);
// echo '
'; ?> Rss-bridge - Create your own network !
    $bridgeInformations): ?>
  • 0 ): ?>
      $anUse): ?>
    1. $argDescription): ?>