Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
Apache/2.4.59 (Debian)
: 10.2.73.233 | : 3.148.145.219
Cant Read [ /etc/named.conf ]
5.6.40-64+0~20230107.71+debian10~1.gbp673146
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
baltic /
web /
modules /
poll /
[ HOME SHELL ]
Name
Size
Permission
Action
poll-bar--block.tpl.php
709
B
-rw-r--r--
poll-bar.tpl.php
775
B
-rw-r--r--
poll-results--block.tpl.php
822
B
-rw-r--r--
poll-results.tpl.php
789
B
-rw-r--r--
poll-rtl.css
134
B
-rw-r--r--
poll-vote.tpl.php
797
B
-rw-r--r--
poll.css
809
B
-rw-r--r--
poll.info
344
B
-rw-r--r--
poll.install
5.94
KB
-rw-r--r--
poll.module
30.08
KB
-rw-r--r--
poll.pages.inc
3.05
KB
-rw-r--r--
poll.test
33.46
KB
-rw-r--r--
poll.tokens.inc
2.83
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : poll.tokens.inc
<?php /** * @file * Builds placeholder replacement tokens for values specific to Poll nodes. */ /** * Implements hook_token_info(). */ function poll_token_info() { $node['poll-votes'] = array( 'name' => t("Poll votes"), 'description' => t("The number of votes that have been cast on a poll."), ); $node['poll-winner'] = array( 'name' => t("Poll winner"), 'description' => t("The winning poll answer."), ); $node['poll-winner-votes'] = array( 'name' => t("Poll winner votes"), 'description' => t("The number of votes received by the winning poll answer."), ); $node['poll-winner-percent'] = array( 'name' => t("Poll winner percent"), 'description' => t("The percentage of votes received by the winning poll answer."), ); $node['poll-duration'] = array( 'name' => t("Poll duration"), 'description' => t("The length of time the poll is set to run."), ); return array( 'tokens' => array('node' => $node), ); } /** * Implements hook_tokens(). */ function poll_tokens($type, $tokens, array $data = array(), array $options = array()) { $sanitize = !empty($options['sanitize']); if (isset($options['language'])) { $url_options['language'] = $options['language']; $language_code = $options['language']->language; } else { $language_code = NULL; } $replacements = array(); if ($type == 'node' && !empty($data['node']) && $data['node']->type == 'poll') { $node = $data['node']; $total_votes = 0; $highest_votes = 0; foreach ($node->choice as $choice) { if ($choice['chvotes'] > $highest_votes) { $winner = $choice; $highest_votes = $choice['chvotes']; } $total_votes = $total_votes + $choice['chvotes']; } foreach ($tokens as $name => $original) { switch ($name) { case 'poll-votes': $replacements[$original] = $total_votes; break; case 'poll-winner': if (isset($winner)) { $replacements[$original] = $sanitize ? filter_xss($winner['chtext']) : $winner['chtext']; } else { $replacements[$original] = ''; } break; case 'poll-winner-votes': if (isset($winner)) { $replacements[$original] = $winner['chvotes']; } else { $replacements[$original] = ''; } break; case 'poll-winner-percent': if (isset($winner)) { $percent = ($winner['chvotes'] / $total_votes) * 100; $replacements[$original] = number_format($percent, 0); } else { $replacements[$original] = ''; } break; case 'poll-duration': $replacements[$original] = format_interval($node->runtime, 1, $language_code); break; } } } return $replacements; }
Close