\n"; sleep( 1 ); $dd = new DemoData(); $dd->setDate( TTDate::getMiddleDayEpoch( TTDate::strtotime( $data['date'] ) ) ); //Always use middle day epoch so its consistent across runs on the same day. $dd->setMaxRandomUsers( $data['random_users'] ); $dd->setUserNamePostFix( $data['suffix'] ); $dd->setRandomSeed( (int)( $dd->getDate() + $dd->getUserNamePostFix() ) ); if ( is_array( $skip ) ) { foreach ( $skip as $skip_object ) { if ( isset( $dd->create_data[$skip_object] ) ) { Debug::Text( ' Skipping Object: ' . $skip_object, __FILE__, __LINE__, __METHOD__, 10 ); echo " Skipping Object: " . $skip_object . "\n"; $dd->create_data[$skip_object] = false; } } } flush(); ob_flush(); sleep( 5 ); $dd->generateData(); Debug::Text( 'Done Generating DEMO Data!', __FILE__, __LINE__, __METHOD__, 10 ); } else { echo "DEMO MODE IS NOT ENABLED!
\n"; exit( 1 ); } } Debug::WriteToLog(); //Debug::Display(); ?>