ProShell v2.0
Dashboard
Server Info
Server: 158.106.128.192
PHP: 8.2.33
home
planet5
public_html
bansibaba.com
2026-09-13 02:34:14
Editing: GoController.php
Cancel
Save Changes
<?php class Aff_GoController extends Am_Controller { /** @var User */ protected $aff; /** @var Banner */ protected $banner; /** @return User|null */ function findAff() { $id = $this->getFiltered('r'); if ($id > 0) { $aff = $this->getDi()->userTable->load($id, false); if ($aff) return $aff; } if (strlen($id)) { $aff = $this->getDi()->userTable->findFirstByLogin($id); if ($aff) return $aff; } return null; } function findAm3Aff() { $id = $this->getFiltered('r'); if ($id > 0) { $newid = $this->getDi()->getDbService()->selectCell("SELECT id from ?_data where `key`='am3:id' AND `table`='user' and value=?",$id); if ($newid > 0) { $aff = $this->getDi()->userTable->load($newid, false); if ($aff) return $aff; } } return null; } function findUrl() { $link = $this->getInt('i'); if ($link > 0 ) { $this->banner = $this->getDi()->affBannerTable->load($link, false); return $this->banner->url; } else { return $this->getDi()->config->get('aff.general_link_url', null); } } function indexAction() { $this->aff = $this->findAff(); $this->link = $this->findUrl(); /// log click if ($this->aff) { $aff_click_id = $this->getDi()->affClickTable->log($this->aff, $this->banner); $this->getModule()->setCookie($this->aff, $this->banner ? $this->banner : null, $aff_click_id); } $this->_redirect($this->link ? $this->link : '/', array('prependBase'=>false)); } function am3goAction() { $this->aff = $this->findAm3Aff(); $this->link = $this->getDi()->config->get('aff.general_link_url', null); /// log click if ($this->aff) { $aff_click_id = $this->getDi()->affClickTable->log($this->aff, $this->banner); $this->getModule()->setCookie($this->aff, $this->banner ? $this->banner : null, $aff_click_id); } $this->_redirect($this->link ? $this->link : '/', array('prependBase'=>false)); } }
Upload Files
Cancel
Upload
Create New
Cancel
Create
Change Permissions
Cancel
Save
Change Date
Cancel
Save
Rename Item
Cancel
Save
Confirm Delete
Are you sure you want to delete the selected items?
Cancel
Delete