Operator Panel not update!

s1net

Joined
Sep 7, 2007
Messages
1
Likes
0
Points
0
#1
I just install Elastix 0.8.5 after I add new extension or deleted extension and apply change then goto Operator flash panel it not update extension icon I try to click reload panel but nothing update I must reboot system to solved this problem. Who got the problem like me? and How to solved this problem.
 

datu503

Joined
Aug 19, 2007
Messages
6
Likes
0
Points
0
#2
yes, I can confirm that, when you add or delete trunks, add or delete extensions, the FOP doesnt update. I also have to manually reboot the system entirely.
 

MailSouth

Joined
Sep 23, 2007
Messages
49
Likes
0
Points
0
#3
Yep looks like we have the same problem. anyone have any ideas how to fix this?
 

saleh

Joined
Apr 18, 2007
Messages
249
Likes
0
Points
0
#4
to fix it =>

$ cd /var/www/html/admin/
$ vi footer.php

line 77

$wOpBounce = rtrim($_SERVER['SCRIPT_FILENAME'],$currentFile).'bounce_op.sh';

change to

$wOpBounce = rtrim($_SERVER['SCRIPT_FILENAME'],$currentFile).'admin/bounce_op.sh'

so can you solved this problem.
 

MailSouth

Joined
Sep 23, 2007
Messages
49
Likes
0
Points
0
#5
I don't have footer.php. I have header.php but no footer.php
 

saleh

Joined
Apr 18, 2007
Messages
249
Likes
0
Points
0
#6
which elastik version have you

what i did write is for Elastik 0.8.5 the latest version of Elastix (Elastix-0.8-5-06sep2007.iso)

but you can see the log file

/var/log/asterisk/freepbx-bounce_op.log

for more help
 

MailSouth

Joined
Sep 23, 2007
Messages
49
Likes
0
Points
0
#7
I have the latest version as well.
 

saleh

Joined
Apr 18, 2007
Messages
249
Likes
0
Points
0
#8
in the latest version under
/var/www/html/admin

there are two files

footer.php and header.php


hier is the files list under the /var/www/html/admin

components.class.php
config.php
extensions.class.php
featurecodes.class.php
footer.php
functions.inc.php
header_auth.php
header.php
index.php
logout.php
page.modules.php
panel.php
reports.php
 

MailSouth

Joined
Sep 23, 2007
Messages
49
Likes
0
Points
0
#9
I have all except footer.php and logout.php. Any suggestions?
 

adonisfigueroa

Joined
Sep 24, 2007
Messages
35
Likes
0
Points
0
#10
Thanks Saleh, your fix was included for the next version.
 

cowboy47

Joined
Jun 14, 2007
Messages
276
Likes
0
Points
0
#11
Is there somewhere where we can get these files so we don't have to wait for the update?
 

ramoncio

Joined
May 12, 2010
Messages
1,663
Likes
0
Points
0
#12
<?php /* $Id: footer.php 4086 2007-06-20 19:39:05Z p_lindheimer $ */
//Copyright (C) 2004 Coalescent Systems Inc. (info@coalescentsystems.ca)
//
//This program is free software; you can redistribute it and/or
//modify it under the terms of the GNU General Public License
//as published by the Free Software Foundation; either version 2
//of the License, or (at your option) any later version.
//
//This program is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//GNU General Public License for more details.

require_once('common/db_connect.php'); //PEAR must be installed

//determine if asterisk reload is needed
$need_reload = check_reload_needed();

//check to see if we are requesting an asterisk reload
if (isset($_REQUEST['clk_reload'])) {

if (isset($amp_conf["POST_RELOAD"]) && $astman)
{
echo "<div id='idWaitBanner' class='clsWait'>" .
_("Please wait while applyig configuration") .
"</div>";

if (!isset($amp_conf["POST_RELOAD_DEBUG"]) ||
(($amp_conf["POST_RELOAD_DEBUG"]!="1") &&
($amp_conf["POST_RELOAD_DEBUG"]!="true"))
)
echo "<div style='display:none'>";

echo "Executing post apply script <b>".$amp_conf["POST_RELOAD"]."</b><pre>";
system( $amp_conf["POST_RELOAD"] );
echo "</pre>";

if (!isset($amp_conf["POST_RELOAD_DEBUG"]) ||
(($amp_conf["POST_RELOAD_DEBUG"]!="1") &&
($amp_conf["POST_RELOAD_DEBUG"]!="true"))
)
echo "</div><br>";

echo "
<script>
function hideWaitBanner()
{
document.getElementById('idWaitBanner').className = 'clsHidden';
}

document.getElementById('idWaitBanner').innerHTML = '" . _("Configuration applied") . "'
document.getElementById('idWaitBanner').className = 'clsWaitFinishOK';
setTimeout('hideWaitBanner()',3000);
</script>
";
}

if (isset($astman) && $astman) {
//run retrieve script
$retrieve = $amp_conf['AMPBIN'].'/retrieve_conf';
exec($retrieve.'&>'.$asterisk_conf['astlogdir'].'/freepbx-retrieve.log');

/* Would be cool to do the following from here
(to avoid permission problems when running apache as nobody).
Unfortunately, I can't make it work :-(
$astman->send_request('Command', array('Command'=>'!/var/lib/asterisk/bin/retrieve_conf'));
*/

//reload MOH to get around 'reload' not actually doing that.
$astman->send_request('Command', array('Command'=>'moh reload'));

//reload asterisk
$astman->send_request('Command', array('Command'=>'reload'));

//bounce op_server.pl
// TODO, should this file be on the web root? whats wrong with /var/lib/asterisk/bin?
$wOpBounce = rtrim($_SERVER['SCRIPT_FILENAME'],$currentFile).'bounce_op.sh';
exec($wOpBounce.'&>'.$asterisk_conf['astlogdir'].'/freepbx-bounce_op.log');

//store asterisk reloaded status
$sql = "UPDATE admin SET value = 'false' WHERE variable = 'need_reload'";
$result = $db->query($sql);
if(DB::IsError($result)) {
die($result->getMessage());
}
$need_reload = false;

// Strip the clk_reload bit, and redirect .. this way, pressing "refresh" won't cause
// a second reload
redirect( preg_replace('/(&|&|\?)clk_reload=true/','',$_SERVER['REQUEST_URI']) );

}
}

//if (isset($_SESSION["AMP_user"]) && ($_SESSION["AMP_user"]->checkSection(99))) {
if(1) {
if ($need_reload) {
$href = $_SERVER["PHP_SELF"] . "?clk_reload=true";
if (isset($_REQUEST['display']))
$href .= '&display='.$_REQUEST['display'];
if (isset($_REQUEST['type']))
$href .= '&type='.$_REQUEST['type'];

echo "<noscript><div class='inyourface'><a href='$href' >";
echo _("You have made changes - when finished, click here to APPLY them");
echo "</a></div></noscript>\n";


echo "<script type=\"text/javascript\">if (ele = document.getElementById('need_reload_block')) { ele.style.display = 'block'; }</script>";
}
}

if (!$quietmode) {
echo "\n\t<div id=\"footer\">\n";
echo "\t<hr />\n";
/*
if (isset($amp_conf["AMPFOOTERLOGO"])) {
$AMPFOOTERLOGO = $amp_conf["AMPFOOTERLOGO"];
if (isset($amp_conf["AMPADMINHREF"]))
$AMPADMINHREF = $amp_conf["AMPADMINHREF"];
else
$AMPADMINHREF = "http://www.freepbx.org";
} else {
$AMPADMINHREF = "http://www.freepbx.org";
$AMPFOOTERLOGO = "freepbx_small.png";
}
$ALT = $AMPADMINHREF;

echo "\t\t<a target='_blank' href='$AMPADMINHREF'><img border='0' src='images/$AMPFOOTERLOGO' alt='$ALT' ></a>\n";
echo "\t\t<a target='_blank' href='http://www.freepbx.org'><img border='0' style='float:left;' src='images/freepbx_small.png' alt='$ALT'></a>\n";
*/

echo "\t\t".sprintf(_("%s licensed under %s"),
"<a href=\"http://www.freepbx.org\" target=\"_blank\">"._("freePBX")." ".getversion()."</a>",
"<a href=\"http://www.gnu.org/copyleft/gpl.html\" target=\"_blank\">GPL</a>"
);
echo " :: ".sprintf(_("UI Design %s, licensed under %s"),
"&copy;2006 <a href=\"http://www.sfischerdesign.com\" target=\"_blank\">Fischer Design</a>",
"<a href=\"http://creativecommons.org/licenses/by/2.5/\" target=\"_blank\">Creative Commons</a>"
);
}
?>
 

ramoncio

Joined
May 12, 2010
Messages
1,663
Likes
0
Points
0
#13
<?php /* $Id: $ */
//Copyright (C) 2004 Coalescent Systems Inc. (info@coalescentsystems.ca)
//
//This program is free software; you can redistribute it and/or
//modify it under the terms of the GNU General Public License
//as published by the Free Software Foundation; either version 2
//of the License, or (at your option) any later version.
//
//This program is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//GNU General Public License for more details.
// start session
session_start();

$quietmode = isset($_REQUEST['quietmode'])?$_REQUEST['quietmode']:'';

$title=_("freePBX administration");

$message=_("Logged Out");

require_once('functions.inc.php');

// get settings
$amp_conf = parse_amportal_conf("/etc/amportal.conf");

// to do a logout, all session-variables will be deleted,
// a variable 'logout' is added:
$_SESSION = array('logout' => true);

require_once('common/db_connect.php');
include 'header.php';

if (!$quietmode) {
// Empty navigation div
echo "<div id=\"nav\">\n";
echo "</div>\n\n";

echo "<div id=\"wrapper\"><div id=\"background-wrapper\">\n";

echo "<div id=\"left-corner\"></div>\n";
echo "<div id=\"right-corner\"></div>\n";

echo "<div class=\"content\">\n";

echo "<p>";
echo "<br><br><br><br>";
echo "<h2><center> ". _('You are now logged out.')."</center></h2>";
echo "<br><br><br><br>";
echo "</p>";

echo "\t</div> \n";

include('footer.php');
echo "</div></div> \n";

echo "</div> \n";
echo "</body>\n";
echo "</html>\n";
}
?>
 

ramoncio

Joined
May 12, 2010
Messages
1,663
Likes
0
Points
0
#14
These are from a 0.8.5 machine
 

cowboy47

Joined
Jun 14, 2007
Messages
276
Likes
0
Points
0
#15
Is this a copy of your footer.php & logout.php? Or is this a script to correct the problem?
 

ramoncio

Joined
May 12, 2010
Messages
1,663
Likes
0
Points
0
#16
This is a copy of the 0.8.5 files.
 

cowboy47

Joined
Jun 14, 2007
Messages
276
Likes
0
Points
0
#17
could you be more specific? Which files in particular?
 

ramoncio

Joined
May 12, 2010
Messages
1,663
Likes
0
Points
0
#18
footer.php & logout.php
 

Members online

No members online now.

Forum statistics

Threads
30,952
Messages
130,980
Members
17,654
Latest member
janko67
Top