Commit ee83c63f authored by Philipp's avatar Philipp

first updates on last old functions

parent e13580f0
/nbproject/private/
data
#!/usr/bin/php
<?php
include( 'mystic_library.php' );
echo "********************************\n";
echo "** mystic_library demo script **\n";
echo "********************************\n";
echo "\n";
/*
echo "\nLast callers:\n";
var_dump( mystic_lastcallers( './data/' ) );
if ( isset( $argv[2] ) ) {
$header = iconv( 'cp437', 'utf-8', file_get_contents( $argv[2] ) );
$header = str_replace( '@DATE@', date( 'Y-m-d' ), $header );
} else {
$header = "Last Update: ". date( 'Y-m-d' ) ."\n\n";
}
echo $header;
if ( isset( $argv[1] ) ) {
$days = intval( $argv[1] );
} else {
$days = 1;
}
echo "\nOneliner:\n";
var_dump( mystic_oneliner( './data/' ) );
echo "\nChat:\n";
var_dump( mystic_chat( './data/', 10 ) );
echo "\nHistory:\n";
var_dump( mystic_history( './data/', 2 ) );
*/
echo "\nUserlist:\n";
var_dump( mystic_userlist( './data/' ) );
echo "\nFilebases:\n";
var_dump( mystic_fbases( './data/' ) );
die();
echo "\nFiles:\n";
$days = 100;
$bases = true;
$count = 0;
while ( $bases != false ) {
$bases = mystic_fbases( '/opt/mystic/data/', 10, $count*10 );
$bases = mystic_fbases( './data/', 10, $count*10 );
if ( $bases != false ) {
foreach ( $bases as $base ) {
$files = true;
$count2 = 0;
$title = false;
while ( $files != false ) {
$files = mystic_files( '/opt/mystic/data/', $base['filename'], 10, $count2*10 );
$files = mystic_files( './data/', $base['filename'], 10, $count2*10 );
if ( $files != false ) {
foreach ( $files as $file ) {
if ( $file['datetime'] >= time()-(86400*$days) ) {
......
This diff is collapsed.
include.path=${php.global.include.path}
php.version=PHP_56
source.encoding=UTF-8
src.dir=.
tags.asp=false
tags.short=false
web.root=.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.php.project</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/php-project/1">
<name>phplib_mystic</name>
</data>
</configuration>
</project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment