⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-pear
/
pear
/
docs
/
Horde_Rdo
/
examples
/
Edit File: Task.php
<?php /** * @package Rdo */ @include './conf.php'; if (empty($conf)) { die('No configuration found.'); } require_once 'Horde/Autoloader.php'; /** */ class Task extends Horde_Rdo_Base { } /** */ class TaskMapper extends Horde_Rdo_Mapper { protected $_table = 'nag_tasks'; } $tm = new TaskMapper($conf['adapter']); // Count all tasks. $count = $tm->count(); echo "# tasks: $count\n"; // List all tasks. echo "Looking for all tasks:\n"; foreach ($tm->find(Horde_Rdo::FIND_ALL) as $task) { echo " " . $task->task_name . "\n"; } // List all of Chuck's tasks. $chuck = $tm->find(Horde_Rdo::FIND_ALL, array('task_owner' => 'chuck')); echo "\nChuck's tasks:\n"; foreach ($chuck as $task) { echo " " . $task->task_name . "\n"; }
Simpan