0){ $sql = 'UPDATE '.$tbl_settings_current.' SET selected_value="'.addslashes($_POST['visio_url']).'" WHERE variable="service_visio" AND subkey="url"'; $rs = api_sql_query($sql, __FILE__, __LINE__); $message = get_lang('ServiceActivated'); } // select all the courses and insert the tool inside $sql = 'SELECT db_name FROM '.Database::get_main_table(TABLE_MAIN_COURSE); $rs = api_sql_query($sql); while($row = mysql_fetch_array($rs)){ $sql = 'INSERT INTO '.$row['db_name'].'.'.TOOL_LIST_TABLE.' SET name="visio", link="conf/", image="visio.gif", visibility="1", admin="0", address="squaregrey.gif", target="_self", category="authoring"'; api_sql_query($sql); } break; case 'ppt2lp' : $sql = 'UPDATE '.$tbl_settings_current.' SET selected_value="true" WHERE variable="service_ppt2lp" AND subkey="active"'; if(mysql_affected_rows()>0){ $message = get_lang('ServiceActivated'); } break; } } $listActiveServices = array(); // get the list of active services $sql = 'SELECT variable FROM '.$tbl_settings_current.' WHERE variable LIKE "service_%" AND subkey="active" and selected_value="true"'; $rs = api_sql_query($sql, __FILE__, __LINE__); while($row = mysql_fetch_array($rs)){ $listActiveServices[] = $row['variable']; } $javascript_service_displayed = ''; if(isset($_GET['display'])){ $javascript_service_displayed = 'document.getElementById("extension_content_'.$_GET['display'].'").style.display = "block"'; } // javascript to handle accordion behaviour $javascript_message = ''; if(!empty($message)){ $javascript_message = ' document.getElementById("message").style.display = "block"; var timer = setTimeout(hideMessage,5000); '; } $htmlHeadXtra[]= ' '; $nameTool = get_lang('ConfigureExtensions'); Display::display_header($nameTool); ?>