⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.50
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
/
View File Name :
content-tag-delete
#!/usr/bin/env php get('horde_dir', null, 'pear.horde.org') . '/content/'; } require_once $baseDir . 'lib/Application.php'; Horde_Registry::appInit('content', array('cli' => true)); $parser = new Horde_Argv_Parser(); list($opts, $tags) = $parser->parseArgs(); if (!count($tags)) { throw new InvalidArgumentException('List at least tag to delete.'); } require CONTENT_BASE . '/lib/Tags/Tag.php'; require CONTENT_BASE . '/lib/Tags/TagMapper.php'; $m = new Content_TagMapper($injector->getInstance('Horde_Db_Adapter')); foreach ($tags as $tag) { $t = $m->findOne(array('tag_name' => $tag)); if (!$t) { echo "$tag doesn't seem to exist, skipping it.\n"; continue; } if ($t->delete()) { echo "Delete tag '$tag' (#".$t->tag_id.")\n"; continue; } else { echo "Failed to delete '$tag'\n"; exit(1); } } exit(0);