I am having a problem with some extensions including one with the id 972ce4c6-7e09-4474-a285-3208198ce6fd
I believe that I am having two different extension issues.
I have been getting errors in the error console about not able to read the chrome.manifest file for extension 972ce4c6-7e08-4474-a285-3208198ce6fd. I do not know what this extension is. I have looked at Troubleshooting information for extensions and can not find this extension.
Also, I applied the Norton fix for Firefox 4 available on the Norton 360 community forum. The Norton Toolbar works on admin accounts, but does not work on non-admin accounts.
I can see that this issue has been quite extensive, and frustrating, and I am so sorry for all that has happened societygirl! I would like to help you work this issue out. Please follow & send me a Direct Message, so I can get your account specifics and help finally bring this to a resolution.
Thank you,
MichelleH_VZW
Follow us on Twitter @VZWSupport
Similar Messages
-
Could not read chrome manifest file 'C:\Program Files\Mozilla Firefox\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}\chrome.manifest'.
This is pretty much it, It was in my error console and its there
every time I check on my errorsI used the 64bit win7,when I start firefox it will be no response just in one
minute ,the console show me this error :Could not read chrome manifest file 'C:\Program Files\Mozilla Firefox\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}\chrome.manifest! -
I need an FTP program. FireFTP was suggested.
Then Firefox blocked it. I allowed it and in the details
the error abovewas listed.
I want to download Microsoft Office 2010 and I
want to be sure its working.
Also have another program that I only get 1 chance
to download.
How can I be sure its working??You can ignore that error message. This one is about the default theme that is now stored in the omni.jar archive.
If the FireFTP extension is working properly then there is no need to worry.<br />
Where did you download that extension from that you needed to allow the installation?
You should always download from the official Mozilla Add-ons site to avoid problems.
*FireFTP: https://addons.mozilla.org/firefox/addon/fireftp/ -
I am having this problem on several websites including my iGoogle page, the home page of my nonprofit and others. Also, features like the quick add button in Google Calendar on my iGoogle page are missing or don't work.
If you have increased the minimum font size then try the default setting "none" as a high value can cause.
*Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
*Tools > Options > Content : Fonts & Colors > Advanced > [X] "Allow pages to choose their own fonts, instead of my selections above"
Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
*http://kb.mozillazine.org/Zoom_text_of_web_pages -
Hello.
Recently I am having a problem of loading videos from Youtube.
The message " loading" keeps go on and on and nothing happens. Can you advise on how to fix this problem.
Thank you inadvance.This problem has been fixed. I rebooted my laptop after clearing my Firefox cache and deleting all cookies. Once my laptop was rebooted, I opened Firefox and now I can access the regular YouTube site, not the mobile site.
-
when i attach my iphone 4 with computer it shows one of the USB devices attached to this computer has malfunctioned and windows does not recognize it,now what can i do ..plz help me
I would first try unplugging All the USB devices plugged into your computer, and then plug back in just the iPhone and see if that is recognized. Also, do you have the latest version of iTunes for Windows installed on your PC, as you need to?
Hope this helps -
Revision: 22381
Revision: 22381
Author: [email protected]
Date: 2011-09-02 05:10:41 -0700 (Fri, 02 Sep 2011)
Log Message:
Add some unit tests for the flex.messaging.client.FlexClientManager, including one for the new getFlexClient(String id, boolean createNewIfNotExist) method signature.
Added Paths:
blazeds/trunk/modules/core/test/src/flex/messaging/client/
blazeds/trunk/modules/core/test/src/flex/messaging/client/FlexClientManagerTest.java -
When I go to certain web sites with Firefox:
-It won't let me log onto the forums.
-It will let me enlarge a picture maybe once or twice but that's it.
-The videos don't show up.
-Some sites the videos do show up and work but you can't enlarge them. (YouTube works fine).
I installed the Adobe Flash player 10 plugin right after installing Firefox.
I'm able to do all this with IE9, however, after installing Firefox, some of my letters when viewed with IE9 are now in some kind of code with things like <p> (maybe html?).
Please Help. Thank YouClear Cookies & Cache
* https://support.mozilla.com/en-US/kb/Template:clearCookiesCache
Clear the Network Cache
* https://support.mozilla.com/en-US/kb/How%20to%20clear%20the%20cache#w_clear-the-cache
Reload web page(s) and bypass the cache.
* Press and hold Shift and left-click the Reload button.
* Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
* Press "Cmd + Shift + R" (MAC)
Troubleshooting extensions and themes
* https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
Check and tell if its working. -
I purchased a PDF Pack last November and I'm having a problem with combining multiple pages into a single PDF file. Please let me know why this is otherwise I would like to cancel the subscription
Hi aspenavenue,
I've checked your account, and there are no issues there. What happens when you try to combine files? Do you get an error message? I would love to help, if possible.
Best,
Sara -
After importing a small group of photo's I noticed that aperture didn't create a project for them as usual. The only place I could see them was in last imported. While last importwas open I selected the photo's and told aperture to creat a new project using the selected one's. I named the project with the date using all cap's so I would know which one it was. What I have now is my whole library showing up in this one project. If I import more pictures It does two things. A new project is created as it normally does. These new thumbnails also show up in the problem project. I tested to see what would happen if I deleted one old picture while the problem project was open. It went to the trash. It was also removed from its original project. If I ignore this what seems to happen when importing at this time is that a new project is created that you can open, it acts normal. The file only contains the correct amount pictures. If I then go to the problem project the thrumbnails show here also.
About 6 mos ago I switch to Aperture from iphoto. I never combined the two libraries. I have around twelve thousand photo's. December 1st I backed up my imac with Time Machine. I don't want to back up again until I get this problem in check.
Thanks for any help, DaleHi Andy,
I'm using Mac OSX 10.7.5
No the one with the caps seems to be working normally.This project with the caps now has four files. Originally I created it with about fifteen. I deleted eleven of them and edited the remaining four. The four files each have one version and its original. It wasn't until after I completed this work that I noticed the privious project when opened and scrolled had the entire library in it.
The test I did went like this. With the problem opened I deleted one file that I new existed prior to this problem. I than opened that project that I new it was from to see if it got deleted and found it gone and moved to trash. I think that tells me that if I delete all the files in the problem project I'll be in trouble. I also have inported to projects each with one file that I edited. They are working fine. I took a look in the problem project and this last
two imports show the thumdnails in it.
Currently on my Hard Drive I have 275 GB free space. My photo's take up 138 GB. As I said on Dec. 1st I backed up the system using time machine. So all of Dec. and part of Jan. inports won't be on it. I could work around the problem project and move those file to a safe place. I think it best not to back up the system with Time Machine until I'm confident the Aperture is runing properly. I'm happy that I control these system backups manually.
I'll need to find out how to copy the Aperture library to another place. I'm sure I can poke around and fined out the process.
Thanks Andy for the come back! -
I am having horrible problems getting some examples to work
I am trying to get a couple examples to work from out of Java Examples in a Nutshell, but they are programmed oddly and will not work. I am using a windows 2000 platform with JDK 1.3.1 installed and working properly.
I have so far typed in these 2 examples:
import javax.swing.*;
import java.awt.*;
public class Containers extends JPanel
{ public Containers()
{ this.setBackground(Color.white);
this.setFont(new Font("Dialog", Font.BOLD,24));
JPanel p1 = new JPanel();
p1.setBackground(new Color(200, 200, 200)); // Panel1 is darker
this.add(p1); //p1 is contained by this component
p1.add(new JButton("#1")); //Button 1 is contained in p1
JPanel p2 = new JPanel();
p2.setBackground(new Color(150,150,150)); // p2 is darker than p1
p1.add(p2); // p2 is contained in p1
p2.add(new JButton("#2")); // button 2 is contained in p2
JPanel p3 = new JPanel();
p3.setBackground(new Color(100,100,100));
p2.add(p3); // p3 is contained in p2
p3.add(new JButton("#3")); // button 3 is contained in p3
JPanel p4 = new JPanel();
p4.setBackground(new Color(150,150,150));
p1.add(p4);
p4.add(new JButton("#4")); //button 4 is contained in p4
p4.add(new JButton("#5")); //Button 5 is also contained in p4
this.add(new JButton("#6")); // button 6 is contained in this component
And this program
//ShowComponent.java
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.beans.*;
import java.lang.reflect.*;
import java.util.Vector;
public class ShowComponent extends JPanel
public static void main(String[] args)
{ // process the command line to get the compenents to display
Vector components = getComponentsFromArgs(args);
// Create a frame (Window) to display the components to display
JFrame frame = new JFrame("ShowComponent");
// Handle window close requests by exiting the VM
frame.addWindowListener(new WindowAdapter() { //anonymous inner class
public void WindowClosing(WindowEvent e) { System.exit(0); }
// set up a menu system that allows the user to select the Look And Feel
// of the component from a list of installed PLAF's
JMenuBar menubar = new JMenuBar(); // create a menu bar
frame.setJMenuBar(menubar); // tell the frame to display the menubar
JMenu plafmenu = createPlafMenu(frame); // create a menu
menubar.add(plafmenu); // Add the menu to the menubar
// Create a JTabbedPane to display each of the components
JTabbedPane pane = new JTabbedPane();
// Now add each component as a tab of the tabbed pane
// use the unqualified component classname as the tab text
for(int i = 0; i < components.size(); i++)
{ Component c = (Component)components.elementAt(i);
String classname = c.getClass().getName();
String tabname = classname.substring(classname.lastIndexOf('.')+1);
pane.addTab(tabname,c);
// Add the tabbedpane to the frame. Note: the call to getContentPane()
// This is required for JFrame, but not for most swing components
frame.getContentPane().add(pane);
// Set the frame size and pop it up
frame.pack(); //Make the frame as big as its children need
frame.setVisible(true); // Make the frame visible on the screen
// The main() method exits now but the Java VM keeps running because
// all AWT programs automatically start an event-handling thread.
//** this static method queries the system to find out what **
//** Pluggable LookAndFeel (PLAF) implementations are available **
//** then it creates a JMenu component that lists each of the **
//** implementations by name and allows the user to select one **
//** of them using JRadioButtonMenuItem components. When the **
//** user selects one, the selected menu item traverses the **
//** component hierarchy and tells all components to use the new**
//** PLAF. **
public static JMenu createPlafMenu(final JFrame frame)
{ //Creates the menu
JMenu plafmenu = new JMenu("Look and Feel");
// Create an object used for radio button mutual exclusion
ButtonGroup radiogroup = new ButtonGroup();
//Look up the available look and feels
UIManager.LookAndFeelInfo[] plafs = UIManager.getInstalledLookAndFeels();
//Loop through the plafs, add a menu item for each one
for(int i = 0; i < plafs.length; i++)
{ String plafName = plafs[i].getName();
final String plafClassName = plafs.getClassName();
// Create the menu items
JMenuItem item = plafmenu.add(new JRadioButtonMenuItem(plafName));
// tell the menu item what to do when it is selected
item.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent e)
{ try
{ // Set the new Look And Feel
UIManager.setLookAndFeel(plafClassName);
// tell each component to change its look and feel
SwingUtilities.updateComponentTreeUI(frame);
//tell the frame to resize itsself to its childrens
// new desired services
frame.pack();
catch(Exception ex) {System.err.println(ex);
// Only allow one menu item to be selected at once
radiogroup.add(item);
return plafmenu;
//** this method loops through the command line arguements looking for **
//** class names of components to create and property settings for those**
//** components in the form name=value. this method demonstrates **
//** reflection and JavaBeans introspection as they can be aplied to **
//** dynamically created GUI's **
public static Vector getComponentsFromArgs(String[] args)
{ Vector components = new Vector(); // List of Components to return
Component component = null; // the current component
PropertyDescriptor[] properties = null; // Properties of the component
Object[] methodArgs = new Object[1]; // we'll use this below
nextarg: // this is a labeled loop
for (int i = 0; i < args.length; i++)
{ // loop through all the arguments
// if the argument does not contain an equal sign, then
// it is a component class name. Otherwise it is a
// property setting
int equalsPos = args[i].indexOf('=');
if (equalsPos == -1)
{ // Its the name of a component
try { //Load the named component class
Class componentClass = Class.forName(args[i]);
//Instantiate it to create the component instance
component = ((Component)componentClass.newInstance());
//Use Java beans to introspect the component
//And get the list of properties it supports
BeanInfo componentBeanInfo = Introspector.getBeanInfo(componentClass);
properties = componentBeanInfo.getPropertyDescriptors();
catch (Exception e)
{ // If an step failed, print an error and exit
System.out.println("Can't load, instantiate, " +
"or introspect: " +args[i]);
System.exit(1);
//If we succeeded, store the component in the vector
components.addElement(component);
else { // the arg is a name=value property specification
String name = args[i].substring(0, equalsPos); //property name
String value = args[i].substring(equalsPos+1); //property value
// If we do not hava component to set this proerty on, skip!
if (component == null) continue nextarg;
// Now look through the properties descriptors for this
// Component to find one with the same name
for(int p = 0; p < properties.length; p++)
{ if (properties[p].getName().equals(name))
{ // okay, we found a property of the right name
// now to get its type, and the setter method
Class type = properties[p].getPropertyType();
Method setter = properties[p].getWriteMethod();
//check if property is read- only !
if (setter == null)
{ System.err.println("Property " + name+ "is read-only");
continue nextarg; // continue with the next arguement
// try to convert the property value to the right type
// we support a small set of common property types here
// Store the converted value in an object[] so it can
//be easily passed when we invoke the property setter
try { if (type == String.class)
{ // no conversion needed
methodArgs[0] = value;
else if (type == int.class)
{ // String to int
methodArgs[0] = Integer.valueOf(value);
else if (type == boolean.class)
{ //to boolean
methodArgs[0] = Boolean.valueOf(value);
else if (type == Color.class)
{ // to Color
methodArgs[0] = Color.decode(value);
else if (type == Font.class)
{ // String to Font
methodArgs[0] = Font.decode(value);
else { // if we cannotconvert, ignore the proprty
System.err.println("Property " + name+ " is of unsupported type "
+ type.getName());
continue nextarg;
catch (Exception e)
{ System.err.println("Can't set Property: " + name);
// NOw go to next command-line arg
continue nextarg;
// If we get here we didn't find the named property
System.err.println("Warning: No such property: " + name);
return components;
//** A component subclass that demonstrates nested containers and components.
//** It creates the hierarchy shown below, and uses different colors to
//** distinguish the different nesting levels of the containers
//** containers---panel1----button1
//** | |---panel2----button2
//** | | |----panel3----button3
//** | |------panel40---button4
//** | |---button5
//** |---button6
They both compile fine but when I go to run them together I get an error. the command given in the book to run them both together is:
java ShowComponent\Containers
But it does not work. I also tried to append Containers to the bottom of ShowComponent and I got an error that said public class Containers extends JPanel needs to have its own file called Containers.java . . I do not understand that as the file was named correctly for ShowComponent.java. I need to knw either what the true command is for running the programs together or what to name container.java that will make it run inside of ShowContainer.java
this is very frustrating as I need to know these answers for work and no one here in the IT department knows how to program in Java but meHi,
I tried the example and got some weird error messages as follows:
********* error messages*********
ShowComponent.java:90: cannot resolve symbol
symbol : method getName ()
location: class javax.swing.UIManager.LookAndFeelInfo[]
{ String plafName = plafs.getName();
^
ShowComponent.java:91: cannot resolve symbol
symbol : method getClassName ()
location: class javax.swing.UIManager.LookAndFeelInfo[]
final String plafClassName = plafs.getClassName();
^
ShowComponent.java:139: cannot resolve symbol
symbol : method indexOf (char)
location: class java.lang.String[]
int equalsPos = args.indexOf('=');
^
ShowComponent.java:143: cannot resolve symbol
symbol : method forName (java.lang.String[])
location: class java.lang.Class
Class componentClass = Class.forName(args);
^
ShowComponent.java:161: cannot resolve symbol
symbol : method substring (int,int)
location: class java.lang.String[]
String name = args.substring(0, equalsPos); //property name
^
ShowComponent.java:162: cannot resolve symbol
symbol : method substring (int)
location: class java.lang.String[]
String value = args.substring(equalsPos+1); //property value
^
6 errors.
*****end of error messages*****
I use jdk1.3 and Win2000. Can anybody tell me how to delete above error messages?
Thanks a lot.
Li -
WebLogic 12.1.2 fails when deploying an enterprise application(ear) that contains a ejb in which injected 1) an extension 2)bean with injection of this extension.
The following exception is thrown:
Caused By: org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [CdiExtension] with qualifiers [@Default] at injection point [[field] @Inject private test.extension.Bean1.extension].
Possible dependencies [
[Extension [class test.extension.CdiExtension] with qualifiers [@Default]; zip:/domain1/servers/AdminServer/tmp/_WL_user/test/7x6roh/lib/test-extension-0.0.1-SNAPSHOT.jar!/META-INF/services/javax.enterprise.inject.spi.Extension@1[test.extension.CdiExtension@1115deb],
Extension [class test.extension.CdiExtension] with qualifiers [@Default]; zip:/domain1/servers/AdminServer/tmp/_WL_user/test/7x6roh/lib/test-extension-0.0.1-SNAPSHOT.jar!/META-INF/services/javax.enterprise.inject.spi.Extension@1[test.extension.CdiExtension@ed791f]]]
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:314)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:280)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:143)
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:163)
at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:382)
at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:367)
at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:379)
at com.oracle.injection.provider.weld.WeldInjectionContainer.start(WeldInjectionContainer.java:106)
at com.oracle.injection.integration.CDIAppDeploymentExtension.initCdi(CDIAppDeploymentExtension.java:70)
at com.oracle.injection.integration.CDIAppDeploymentExtension.activate(CDIAppDeploymentExtension.java:47)
at weblogic.application.internal.flow.AppDeploymentExtensionFlow.activate(AppDeploymentExtensionFlow.java:37)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:729)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:61)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
Problem can be easily reproduced by a minimal case:
test.ear:
\lib\test-extension-0.0.1-SNAPSHOT.jar
test-ejb-0.0.1-SNAPSHOT.jar
where
test-extension-0.0.1-SNAPSHOT.jar contains:
CdiExtension.java:
package test.extension;
import javax.enterprise.inject.spi.Extension;
public class CdiExtension implements Extension {
private String someString = "Some String";
public String getSomeString() {
return someString;
Bean1.java:
package test.extension;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
@ApplicationScoped
public class Bean1 {
@Inject
private CdiExtension extension;
public String get() {
return extension.getSomeString();
test-ejb-0.0.1-SNAPSHOT.jar contains:
EjbBean.java:
package test;
import test.extension.Bean1;
import test.extension.CdiExtension;
import javax.ejb.Stateless;
import javax.inject.Inject;
@Stateless
public class EjbBean {
@Inject
private CdiExtension extension;
@Inject
private Bean1 bean1;
public String getSomeString() {
return extension.getSomeString() + "\n" + bean1.get();
p.s. i seen same problem in community.oracle.com/thread/2577403 , but it happen in "war", not "ear", and seems successfully patched with patch №17424706Hi,
It looks like there is patch exists for this issue.
Patch 17198187
Please try to download from the MOS or try to open a ticket with support.
Regards,
Kal -
TS1702 was not having any problem running apps Now now none of the apps will run
Was not having any problems running any apps on my ipad3 and now none of the apps will launch all apps were with obtained through apple app store the only thing different was on Sun I connected my pad to my pc for the first time to transfer some music to day was the first time I tried to run any apps since then.and that's whei encounter the problem
Download another app - any free app is fine. See if that helps.
-
I/O errors with some discs in XP with Boot Camp Please help.
I wasn't sure which forum to post this problem in. I've also asked this question in "Using your Intel-based iMac". It fits in a few categories, so I apologize if I've gotten it wrong.
I tried to install a game (Last Half of Darkness, 2005) yesterday, and with about 1/3 of installation complete, I got this message: An error occurred while trying to copy a file: I/O error 23. I had my choice of abort, retry or ignore. After the 1st error message I chose retry. After a bit more of the installation I got another error message: I/O 1117. I then tried to ignore, that didn't work, so I aborted. I tried to install a second time, and even tried a second copy of the same game, then tried to install the 2007 sequel to Last Half, same error messages. After each attempt at installation, I could not get the drive to eject the disc. I eventually did by restarting in OSX. My iMac is 13 months old. In November I had a similar problem with another game, this one from about 2004. In that case, the game installed, but froze a few minutes into playing. Because I couldn't play, and couldn't eject, without a great deal of time and "spinning" noise, I took the computer to the Apple Store to have them look at it. I figured that if it was 2 months from being out of warranty, I should get it fixed right then. Of course all the messing with it they did showed no drive problems. All other CD or DVDs, either commercial or homemade, music, video or games have installed and run just fine.
An internet search found this: http://support.microsoft.com/kb/891894 I did everything except the clean boot install, and contacting the manufacturer. After changing the transfer mode per these instructions, I could get all of 2/3 of the way through installation before the error messages popped up.
All drivers are up-to-date according to Windows automatic update and Apple update.
This is my 4th Mac, so I have little experience with PC/Windows. Can anyone give me a suggestion as to what I can do to install and play these games? Any help greatly appreciated.
RuthI'm moving this up in the queue since I couldn't find a solution on this site, or elsewhere on the net. Any suggestions greatly appreciated.
iMac 2.4 GHz, 24", 3GB ram
Mac OSX 10.5.5
XP Pro SP3 w/Boot Camp
ATI Radeon HD 2600 Pro -
Problems using a php include file with an Add-on Domain.
Hello,
I am having an issue getting a php include file to work with a new add-on domain I am working on getting up and running.
This include file is one that supplies the rest of the php code to a contact form page. It works as it should for my original domain, same file no difference. I made sure that the files hosted on the remote server had all read, write, execute permissions turned on.
I have tried putting the include file in several different locations as a test, such as:
I don't remember the exact name of the include file at the moment, as I'm at work so I will designate it below as 'includefile.php'.
file path for add-on domain - ../public_html/lorentzpainting/includes/includefile.php
alternatives I tried moving the file to - ../public_html/lorentzpainting/includefile.php
When none of those options worked, I tried just pointing the path towards other places on the server that have the include file such as:
../public_html/includes/includefile.php
../public_html/includefile.php
What can I do here? Should I just give up on using the include and put all the code back in the page? Doesn't seem like it should be this complicated, it works perfectly fine for my other site.. and still does.
Thanks ahead of time to those who may assist me.here is the contents of the include file:
<?php
if (isset($_SERVER['SCRIPT_NAME']) && strpos($_SERVER['SCRIPT_NAME'],
'.inc.php')) exit;
// remove escape characters from POST array
if (PHP_VERSION < 6 && get_magic_quotes_gpc()) {
function stripslashes_deep($value) {
$value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);
return $value;
$_POST = array_map('stripslashes_deep', $_POST);
// assume that there is nothing suspect
$suspect = false;
// create a pattern to locate suspect phrases
$pattern = '/Content-Type:|Bcc:|Cc:/i';
// function to check for suspect phrases
function isSuspect($val, $pattern, &$suspect) {
// if the variable is an array, loop through each element
// and pass it recursively back to the same function
if (is_array($val)) {
foreach ($val as $item) {
isSuspect($item, $pattern, $suspect);
else {
// if one of the suspect phrases is found, set Boolean to true
if (preg_match($pattern, $val)) {
$suspect = true;
//check the $_POST array and any subarrays for suspect content
isSuspect($_POST, $pattern, $suspect);
if (!empty($_POST['url'])) {
$suspect = true;
if ($suspect) {
$mailSent = false;
unset($missing);
} else {
//process the $_POST variables
foreach ($_POST as $key => $value) {
// assign to temporary variable and strip whitespace if not an array
$temp = is_array($value) ? $value : trim($value);
// if empty and required, add to $missing array
if (empty($temp) && in_array($key, $required)) {
array_push($missing, $key);
} elseif (in_array($key, $expected)) {
// otherwise, assign to a variable of the same name as $key
${$key} = $temp;
//validate the email address
if (!empty($email)) {
// regex to identify illegal characters in email address
$checkEmail = '/^[^@]+@[^\s\r\n\'";,@%]+$/';
//reject the email address if it doesn't match
if (!preg_match($checkEmail, $email)) {
$suspect = true;
$mailSent = false;
unset($missing);
//go ahead only if all required fields OK
if (!$suspect && empty($missing)) {
//initialize the $message variable
$message = '';
// loop through the $expected array
foreach($expected as $item) {
// assign the value of the current item to $val
if (isset(${$item}) && !empty(${$item})) {
$val = ${$item};
} else {
// if it has no value, assign 'Not selected'
$val = 'Not selected';
// if an array, expand as comma-sparated string
if (is_array($val)) {
$val = implode(',', $val);
// add label and value to the message body
$message .= ucfirst($item).": $val\r\n\r\n";
//limit line length to 70 characters
$message = wordwrap($message, 70);
//create Reply-To header
if (!empty($email)) {
$headers .= "\r\nReply-To: $email";
// send it
$mailSent = mail($to, $subject, $message, $headers);
if ($mailSent) {
// $missing is no longer needed if the email is sent, so unset it
unset($missing); echo('Thank you for contacting Common Wealth Web Solutions');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
Maybe you are looking for
-
IPC Java userexit-pricing routines
Hi experts, I am new to IPC java pricing routines and i have a requirement like this, 1. The user enters manually in Quote the new price. (say cond type ZNEW) 2. The cond record for ZTKE is available with the price as well as Max price and Min Price
-
Does the Builder pattern really need a Director?
A Builder knows how to construct the various parts of an aggregate, while a Director knows the order in which they should be constructed. Wikipedia illustrates this pattern with a PizzaBuilder example: http://en.wikipedia.org/wiki/Builder_pattern I f
-
So my iPad is suddenly quitting its applications constantly. Applications it quits out of most are Safari, Mail, and iBooks. Mail started being sluggish to respond about a week ago but it seemed to be an irregular problem. Now all of those Apps are q
-
Help I have retrieved the data below from a database and stored into a vector. (each row is stored into an array and in turn each row is stored into a vector). Now I have to show this data quarterly (add january, feb and mar into one quarter and so o
-
How to get total or sum year to date or date range
Is there a way to duplicate in Numbers what I used to do with Excel's formula =DSUM(Database,"Total",Criteria) where criteria would be any date I plugged into a referenced cell to get a year to date total. Thanks! DBT