Exploit databaseDownload repository ZIP
GH-e6b93263b65106bf28255cbef96744df
pswalia2u/cve-2020-7246
Sources for CVE-2020-7246
12 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files1
pswalia2u/cve-2020-7246Revision 449c8945fe7d
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
html/core/apps/qdPM/modules/discussionsStatus/actions/actions.class.php
PHP · 3,697 bytes<?php
/**
*qdPM
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade qdPM to newer
* versions in the future. If you wish to customize qdPM for your
* needs please refer to http://www.qdPM.net for more information.
*
* @copyright Copyright (c) 2009 Sergey Kharchishin and Kym Romanets (http://www.qdpm.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
?>
<?php
/**
* discussionsStatus actions.
*
* @package sf_sandbox
* @subpackage discussionsStatus
* @author Your name here
* @version SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
class discussionsStatusActions extends sfActions
{
public function executeIndex(sfWebRequest $request)
{
app::setPageTitle('Discussions Status',$this->getResponse());
$this->discussions_statuss = Doctrine_Core::getTable('DiscussionsStatus')
->createQuery('a')
->orderBy('sort_order, name')
->execute();
}
public function executeNew(sfWebRequest $request)
{
$this->form = new DiscussionsStatusForm();
}
public function executeCreate(sfWebRequest $request)
{
$this->forward404Unless($request->isMethod(sfRequest::POST));
$this->form = new DiscussionsStatusForm();
$this->processForm($request, $this->form);
$this->setTemplate('new');
}
public function executeEdit(sfWebRequest $request)
{
$this->forward404Unless($discussions_status = Doctrine_Core::getTable('DiscussionsStatus')->find(array($request->getParameter('id'))), sprintf('Object discussions_status does not exist (%s).', $request->getParameter('id')));
$this->form = new DiscussionsStatusForm($discussions_status);
}
public function executeUpdate(sfWebRequest $request)
{
$this->forward404Unless($request->isMethod(sfRequest::POST) || $request->isMethod(sfRequest::PUT));
$this->forward404Unless($discussions_status = Doctrine_Core::getTable('DiscussionsStatus')->find(array($request->getParameter('id'))), sprintf('Object discussions_status does not exist (%s).', $request->getParameter('id')));
$this->form = new DiscussionsStatusForm($discussions_status);
$this->processForm($request, $this->form);
$this->setTemplate('edit');
}
public function executeDelete(sfWebRequest $request)
{
$request->checkCSRFProtection();
$this->forward404Unless($discussions_status = Doctrine_Core::getTable('DiscussionsStatus')->find(array($request->getParameter('id'))), sprintf('Object discussions_status does not exist (%s).', $request->getParameter('id')));
$discussions_status->delete();
$this->redirect('discussionsStatus/index');
}
protected function processForm(sfWebRequest $request, sfForm $form)
{
$form->bind($request->getParameter($form->getName()), $request->getFiles($form->getName()));
if ($form->isValid())
{
$discussions_status = $form->save();
if($discussions_status->getDefaultValue()==1)
{
app::resetCfgDefaultValue($discussions_status->getId(),'DiscussionsStatus');
}
$this->redirect('discussionsStatus/index');
}
}
}