WPR FM
uid=9814(b13i2mwmyrdbxio) php=8.4.28
info
cwd /data/sites/web/b13i2mwmyrdbxio/www |
naik
Buka
-
class-action.php
2920
x
-
class-error.php
1494
x
-
class-nothing.php
495
x
-
class-pass.php
1934
x
-
class-random.php
898
x
-
class-url.php
973
x
Upload
Simpan
<?php namespace Redirection\Action; /** * URL action - redirect to a URL */ class Url extends Action { /** * Redirect to a URL * * @param string $target Target URL. * @return void */ protected function redirect_to( $target ) { // This is a known redirect, possibly external // phpcs:ignore $redirect = wp_redirect( $target, $this->get_code(), 'redirection' ); if ( $redirect ) { global $wp_version; if ( version_compare( $wp_version, '5.1', '<' ) ) { header( 'X-Redirect-Agent: redirection' ); } die(); } } /** * Run this action. May not return from this function. * * @return void */ public function run() { $target = $this->get_target(); if ( $target !== null ) { $this->redirect_to( $target ); } } /** * Does this action need a target? * * @return boolean */ public function needs_target() { return true; } public function name() { return __( 'Redirect to URL', 'redirection' ); } }
Exec