Removing more obsolete libpref stuff. Not part of build. r=alecf.
git-svn-id: svn://10.0.0.236/trunk@75706 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1,105 +0,0 @@
|
||||
/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
// Default configuration information for the client
|
||||
//
|
||||
|
||||
// config("startup.homepage_override_url","http://home.netscape.com/home/first.html");
|
||||
config("autoadmin.append_emailaddr",false);
|
||||
config("autoadmin.failover_to_cached",true);
|
||||
|
||||
config("toolbar.logo.url","http://home.netscape.com/");
|
||||
config("toolbar.logo.win_small_file","");
|
||||
config("toolbar.logo.win_large_file","");
|
||||
config("toolbar.logo.frames",-1);
|
||||
|
||||
config("toolbar.places.default_url","http://guide.netscape.com");
|
||||
|
||||
config("toolbar.places.item_0.label","The Internet");
|
||||
config("toolbar.places.item_0.url","http://guide.netscape.com");
|
||||
config("toolbar.places.item_1.label","People");
|
||||
config("toolbar.places.item_1.url","http://guide.netscape.com/guide/people.html");
|
||||
config("toolbar.places.item_2.label","Yellow Pages");
|
||||
config("toolbar.places.item_2.url","http://guide.netscape.com/guide/yellow_pages.html");
|
||||
config("toolbar.places.item_3.label","What's New");
|
||||
config("toolbar.places.item_3.url","http://guide.netscape.com/guide/whats_new.html");
|
||||
config("toolbar.places.item_4.label","What's Cool");
|
||||
config("toolbar.places.item_4.url","http://guide.netscape.com/guide/whats_cool.html");
|
||||
|
||||
config("internal_url.net_search.url","http://home.netscape.com/home/internet-search.html");
|
||||
config("internal_url.more_info_plugin.url","http://cgi.netscape.com/eng/mozilla/2.0/extensions/info.cgi");
|
||||
config("internal_url.default_template.url","http://home.netscape.com/home/gold3.0_templates.html");
|
||||
config("internal_url.page_from_wizard.url", "http://home.netscape.com/home/gold4.0_wizard.html");
|
||||
|
||||
config("menu.places.item_0.label","The &Internet");
|
||||
config("menu.places.item_0.url","http://guide.netscape.com");
|
||||
config("menu.places.item_1.label","&People");
|
||||
config("menu.places.item_1.url","http://guide.netscape.com/guide/people.html");
|
||||
config("menu.places.item_2.label","&Yellow Pages");
|
||||
config("menu.places.item_2.url","http://guide.netscape.com/guide/yellow_pages.html");
|
||||
config("menu.places.item_3.label","What's &New");
|
||||
config("menu.places.item_3.url","http://guide.netscape.com/guide/whats_new.html");
|
||||
config("menu.places.item_4.label","What's &Cool");
|
||||
config("menu.places.item_4.url","http://guide.netscape.com/guide/whats_cool.html");
|
||||
|
||||
config("menu.help.item_0.label","&Help Contents");
|
||||
config("menu.help.item_0.url","nethelp:netscape/home:start_here");
|
||||
config("menu.help.item_1.label","&Release Notes");
|
||||
config("menu.help.item_1.url","http://home.netscape.com/eng/mozilla/4.0/relnotes/windows-nav-4.0.html");
|
||||
config("menu.help.item_2.label","&Product Information and Support");
|
||||
config("menu.help.item_2.url","http://home.netscape.com/menu/prodsupp/client/");
|
||||
config("menu.help.item_3.label","-");
|
||||
config("menu.help.item_4.label","&Software Updates");
|
||||
config("menu.help.item_4.url","http://home.netscape.com/home/update.html");
|
||||
config("menu.help.item_5.label","Register No&w");
|
||||
config("menu.help.item_5.url","http://home.netscape.com/home/register.html");
|
||||
config("menu.help.item_6.label","&Member Services");
|
||||
config("menu.help.item_6.url","http://home.netscape.com/home/services.html");
|
||||
config("menu.help.item_7.label","-");
|
||||
config("menu.help.item_8.label","&International Users");
|
||||
config("menu.help.item_8.url","http://home.netscape.com/menu/intl/");
|
||||
config("menu.help.item_9.label","S&ecurity");
|
||||
config("menu.help.item_9.url","http://home.netscape.com/info/security-doc.html");
|
||||
config("menu.help.item_10.label","-");
|
||||
config("menu.help.item_11.label","Abou&t Plug-ins");
|
||||
config("menu.help.item_11.url","about:plugins");
|
||||
config("menu.help.item_12.label","About Font &Displayers");
|
||||
config("menu.help.item_12.url","about:fonts");
|
||||
|
||||
config("personal_toolbar.item_0.label","Internet");
|
||||
config("personal_toolbar.item_0.url","http://guide.netscape.com/?t");
|
||||
config("personal_toolbar.item_1.label","Lookup");
|
||||
config("personal_toolbar.item_1.url","FOLDER");
|
||||
config("personal_toolbar.item_1.item_0.label","People");
|
||||
config("personal_toolbar.item_1.item_0.url","http://guide.netscape.com/guide/people.html?t");
|
||||
config("personal_toolbar.item_1.item_1.label","Yellow Pages");
|
||||
config("personal_toolbar.item_1.item_1.url","http://guide.netscape.com/guide/yellow_pages.html?t");
|
||||
config("personal_toolbar.item_2.label","New&Cool");
|
||||
config("personal_toolbar.item_2.url","FOLDER");
|
||||
config("personal_toolbar.item_2.item_0.label","What's New");
|
||||
config("personal_toolbar.item_2.item_0.url","http://guide.netscape.com/guide/whats_new.html?t");
|
||||
config("personal_toolbar.item_2.item_1.label","What's Cool");
|
||||
config("personal_toolbar.item_2.item_1.url","http://guide.netscape.com/guide/whats_cool.html?t");
|
||||
|
||||
config("personal_toolbar.CreateNewToolbar", false);
|
||||
config("personal_toolbar.NewToolbarFolderName", "");
|
||||
config("personal_toolbar.ToolbarFolderVersion", "");
|
||||
@@ -1,113 +0,0 @@
|
||||
/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
pref("security.ask_for_fortezza", 0);
|
||||
pref("security.ask_for_password", 0);
|
||||
pref("security.ciphers", "");
|
||||
pref("security.default_mail_cert", "");
|
||||
pref("security.default_personal_cert", "");
|
||||
pref("security.email_as_ftp_password", false);
|
||||
pref("security.enable_java", true);
|
||||
pref("security.lower_java_network_security_by_trusting_proxies", false);
|
||||
pref("security.enable_ssl2", true);
|
||||
pref("security.enable_ssl3", true);
|
||||
pref("security.fortezza_lifetime", 30);
|
||||
pref("security.password_lifetime", 30);
|
||||
pref("security.submit_email_forms", true);
|
||||
pref("security.use_password", true);
|
||||
pref("security.warn_accept_cookie", false); // ML obsolete
|
||||
pref("security.warn_entering_secure", true);
|
||||
pref("security.warn_leaving_secure", true);
|
||||
pref("security.warn_submit_insecure", true);
|
||||
pref("security.warn_viewing_mixed", true);
|
||||
|
||||
pref("security.ssl2.des_ede3_192", true); // Domestic
|
||||
pref("security.ssl2.des_64", true); // Domestic
|
||||
pref("security.ssl2.rc2_128", true); // Domestic
|
||||
pref("security.ssl2.rc2_40", true); // Export
|
||||
pref("security.ssl2.rc4_40", true); // Export
|
||||
pref("security.ssl2.rc4_128", true); // Domestic
|
||||
|
||||
pref("security.ssl3.fortezza_fortezza_sha", true); // Fortezza
|
||||
pref("security.ssl3.fortezza_null_sha", false); // Fortezza
|
||||
pref("security.ssl3.fortezza_rc4_sha", true); // Fortezza
|
||||
pref("security.ssl3.rsa_des_ede3_sha", true); // Domestic
|
||||
pref("security.ssl3.rsa_des_sha", true); // Domestic
|
||||
pref("security.ssl3.rsa_null_md5", false); // Export
|
||||
pref("security.ssl3.rsa_rc2_40_md5", true); // Export
|
||||
pref("security.ssl3.rsa_rc4_40_md5", true); // Export
|
||||
pref("security.ssl3.rsa_rc4_128_md5", true); // Domestic
|
||||
pref("security.ssl3.rsa_fips_des_ede3_sha", true); // Domestic
|
||||
pref("security.ssl3.rsa_fips_des_sha", true); // Domestic
|
||||
|
||||
pref("security.smime.des_ede3", true); // Domestic
|
||||
pref("security.smime.des", true); // Domestic
|
||||
pref("security.smime.rc2_40", true); // Export
|
||||
pref("security.smime.rc2_64", true); // Domestic
|
||||
pref("security.smime.rc2_128", true); // Domestic
|
||||
pref("security.smime.rc5.b64r16k40", true);
|
||||
pref("security.smime.rc5.b64r16k64", true);
|
||||
pref("security.smime.rc5.b64r16k128", true);
|
||||
pref("security.smime.fortezza", true); // Fortezza
|
||||
|
||||
pref("security.canotices.VeriSignInc.notice1",
|
||||
"This certificate incorporates the VeriSign Certification Practice Statement "+
|
||||
"(CPS) by reference. Use of this certificate is governed by the CPS.\n\n"+
|
||||
"The CPS is available in the VeriSign repository at "+
|
||||
"https://www.verisign.com/repository/CPS and "+
|
||||
"ftp://ftp.verisign.com/repository/CPS; by E-mail at "+
|
||||
"CPS-requests@verisign.com; and by mail at VeriSign, Inc., 2593 Coast Ave., "+
|
||||
"Mountain View, CA 94043 USA, Attn: Certification Services.\n\n"+
|
||||
"THE CPS DISCLAIMS AND LIMITS CERTAIN LIABILITIES, INCLUDING CONSEQUENTIAL "+
|
||||
"AND PUNITIVE DAMAGES. THE CPS ALSO INCLUDES CAPS ON LIABILITY RELATED TO "+
|
||||
"THIS CERTIFICATE. SEE THE CPS FOR DETAILS.\n\n"+
|
||||
"The CPS and this certificate are copyrighted: Copyright (c) 1997 VeriSign, "+
|
||||
"Inc. All Rights Reserved.");
|
||||
|
||||
pref("security.canotices.VeriSignInc.notice2",
|
||||
"The subject name (i.e., user name) in this VeriSign Class 1 "+
|
||||
"certificate contains nonverified subscriber information.");
|
||||
|
||||
pref("security.canotices.VeriSignInc.notice3",
|
||||
"This certificate incorporates by reference, and its use is strictly subject "+
|
||||
"to, the VeriSign Certification Practice Statement (CPS), available in the "+
|
||||
"VeriSign repository at: https://www.verisign.co.jp; by E-mail at "+
|
||||
"CPS-requests@verisign.co.jp; or by mail at VeriSign Japan K.K, 580-16 "+
|
||||
"Horikawacho, Saiwai-ku, Kawasaki 210 Japan\n\n"+
|
||||
"Copyright (c)1996, 1997 VeriSign, Inc. All Rights Reserved. CERTAIN "+
|
||||
"WARRANTIES DISCLAIMED AND LIABILITY LIMITED.\n\n"+
|
||||
"WARNING: THE USE OF THIS CERTIFICATE IS STRICTLY SUBJECT TO THE VERISIGN "+
|
||||
"CERTIFICATION PRACTICE STATEMENT. THE ISSUING AUTHORITY DISCLAIMS CERTAIN "+
|
||||
"IMPLIED AND EXPRESS WARRANTIES, INCLUDING WARRANTIES OF MERCHANTABILITY OR "+
|
||||
"FITNESS FOR A PARTICULAR PURPOSE, AND WILL NOT BE LIABLE FOR CONSEQUENTIAL, "+
|
||||
"PUNITIVE, AND CERTAIN OTHER DAMAGES. SEE THE CPS FOR DETAILS.\n\n"+
|
||||
"Contents of the VeriSign registered nonverifiedSubjectAttributes extension "+
|
||||
"value shall not be considered as accurate information validated by the IA.");
|
||||
|
||||
pref("signed.applets.DefaultTo30Security", false);
|
||||
pref("signed.applets.securityIsOn", true);
|
||||
pref("signed.applets.codebase_principal_support", true);
|
||||
pref("signed.applets.local_classes_have_30_powers", false);
|
||||
pref("signed.applets.capabilitiesDB.lock_to_current", false);
|
||||
pref("signed.applets.low_security_for_local_classes", false);
|
||||
pref("signed.applets.simulate_signatures_on_system_classes", true);
|
||||
pref("signed.applets.verbose_security_exception", false);
|
||||
@@ -1,22 +0,0 @@
|
||||
#!/usr/local/bin/perl
|
||||
# usually you just run $(PERL) this file though
|
||||
|
||||
while (<ARGV>) {
|
||||
if (/(config|pref|localDefPref)\s*\(\"([^\"]*)\"/) {
|
||||
# $2 now contains the pref name
|
||||
$define = $pref_name = $2;
|
||||
$define =~ tr/a-z/A-Z/;
|
||||
$define =~ s/\./_/g;
|
||||
|
||||
# uniqify the list by dumping everything into a hash
|
||||
$preftable{"PREF_$define"} = "\"$pref_name\""
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
# print out the final table
|
||||
foreach $pref (sort keys %preftable) {
|
||||
print "#define $pref $preftable{$pref}\n";
|
||||
}
|
||||
@@ -1,106 +0,0 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
/* LDAP functions callable from JavaScript */
|
||||
|
||||
#include "ldap.h"
|
||||
#include "prefldap.h"
|
||||
|
||||
/*
|
||||
* Creates an LDAP search URL given a comma-separated list of attributes.
|
||||
* Returns a list of key=values separated by '\n'
|
||||
*/
|
||||
char * pref_get_ldap_attributes(char* host, char* base, char* filter, char* attrs,
|
||||
char** return_error)
|
||||
{
|
||||
char *value = NULL;
|
||||
LDAP* ld;
|
||||
int err, i;
|
||||
char *url;
|
||||
LDAPMessage *result;
|
||||
LDAPMessage *e;
|
||||
char *a;
|
||||
BerElement *ber;
|
||||
char **vals;
|
||||
|
||||
ld = ldap_init(host, LDAP_PORT);
|
||||
if (!ld)
|
||||
return value;
|
||||
|
||||
url = (char*) malloc(sizeof(char) *
|
||||
(strlen(host) + strlen(base) + strlen(filter) + strlen(attrs) + 20));
|
||||
if (!url)
|
||||
return value;
|
||||
|
||||
XP_SPRINTF(url, "ldap://%s/%s?%s?sub?%s", host, base, attrs, filter);
|
||||
|
||||
err = ldap_url_search_s( ld, url, 0, &result );
|
||||
XP_FREE(url);
|
||||
if (err != LDAP_SUCCESS) {
|
||||
*return_error = ldap_err2string(err);
|
||||
return value;
|
||||
}
|
||||
|
||||
e = ldap_first_entry( ld, result );
|
||||
|
||||
if (e) {
|
||||
a = ldap_first_attribute( ld, e, &ber );
|
||||
if (a) {
|
||||
int total_buf_size = 200;
|
||||
int remaining_buf_size = total_buf_size;
|
||||
value = (char*) malloc(sizeof(char*) * total_buf_size);
|
||||
if (!value)
|
||||
return NULL;
|
||||
value[0] = '\0';
|
||||
|
||||
for ( ; a != NULL; a = ldap_next_attribute( ld, e, ber )) {
|
||||
vals = ldap_get_values( ld, e, a );
|
||||
if (vals && vals[0]) {
|
||||
remaining_buf_size -= (strlen(a) + strlen(vals[0]) + 2);
|
||||
if (remaining_buf_size < 1) {
|
||||
remaining_buf_size += 2 * total_buf_size;
|
||||
total_buf_size += 2 * total_buf_size;
|
||||
value = (char*) realloc(value, sizeof(char*) * total_buf_size);
|
||||
if (!value)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
strcat(value, "\n");
|
||||
strcat(value, a);
|
||||
strcat(value, "=");
|
||||
strcat(value, vals[0]);
|
||||
|
||||
ldap_value_free( vals );
|
||||
}
|
||||
}
|
||||
ldap_memfree(a);
|
||||
}
|
||||
if (ber)
|
||||
ber_free(ber, 0);
|
||||
}
|
||||
|
||||
ldap_msgfree(result);
|
||||
ldap_unbind(ld);
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
/*
|
||||
* Needed by icondata.h
|
||||
* An empty file is ok.
|
||||
*/
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,66 +0,0 @@
|
||||
; -*- Mode: Fundamental; tab-width: 4; indent-tabs-mode: nil -*-
|
||||
;
|
||||
; The contents of this file are subject to the Netscape Public
|
||||
; License Version 1.1 (the "License"); you may not use this file
|
||||
; except in compliance with the License. You may obtain a copy of
|
||||
; the License at http://www.mozilla.org/NPL/
|
||||
;
|
||||
; Software distributed under the License is distributed on an "AS
|
||||
; IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
; implied. See the License for the specific language governing
|
||||
; rights and limitations under the License.
|
||||
;
|
||||
; The Original Code is mozilla.org code.
|
||||
;
|
||||
; The Initial Developer of the Original Code is Netscape
|
||||
; Communications Corporation. Portions created by Netscape are
|
||||
; Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
; Rights Reserved.
|
||||
;
|
||||
; Contributor(s):
|
||||
|
||||
|
||||
|
||||
; prefdll.def : Declares the module parameters for the DLL.
|
||||
|
||||
LIBRARY "NSPREF"
|
||||
DESCRIPTION 'NSPREF Windows Dynamic Link Library'
|
||||
|
||||
EXPORTS
|
||||
; Explicit exports can go here
|
||||
PREF_Init @1
|
||||
PREF_EvaluateJSBuffer
|
||||
|
||||
PREF_SetCharPref
|
||||
PREF_SetIntPref
|
||||
PREF_SetBoolPref
|
||||
PREF_SetBinaryPref
|
||||
PREF_SetColorPref
|
||||
PREF_SetRectPref
|
||||
|
||||
PREF_SetDefaultCharPref
|
||||
PREF_SetDefaultIntPref
|
||||
PREF_SetDefaultBoolPref
|
||||
PREF_SetDefaultBinaryPref
|
||||
PREF_SetDefaultColorPref
|
||||
PREF_SetDefaultRectPref
|
||||
|
||||
PREF_CopyCharPref
|
||||
|
||||
PREF_GetCharPref
|
||||
PREF_GetIntPref
|
||||
PREF_GetBoolPref
|
||||
PREF_GetBinaryPref
|
||||
PREF_GetColorPref
|
||||
PREF_GetRectPref
|
||||
|
||||
PREF_GetDefaultCharPref
|
||||
PREF_GetDefaultIntPref
|
||||
PREF_GetDefaultBoolPref
|
||||
PREF_GetDefaultBinaryPref
|
||||
PREF_GetDefaultColorPref
|
||||
PREF_GetDefaultRectPref
|
||||
|
||||
PREF_PrefIsLocked
|
||||
PREF_SavePrefFile
|
||||
PREF_RegisterCallback
|
||||
@@ -1,76 +0,0 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#include "mochaapi.h"
|
||||
#include "mochalib.h"
|
||||
#include "xp_core.h"
|
||||
#include "xp_mcom.h"
|
||||
#include "prefapi.h"
|
||||
|
||||
extern MochaContext * m_mochaContext;
|
||||
extern MochaObject * m_mochaPrefObject;
|
||||
|
||||
int pref_InitInitialObjects() {
|
||||
MochaBoolean ok;
|
||||
MochaDatum result;
|
||||
HRSRC hFound;
|
||||
HGLOBAL hRes;
|
||||
char * lpBuff = NULL;
|
||||
XP_File fp;
|
||||
XP_StatStruct stats;
|
||||
long fileLength;
|
||||
|
||||
|
||||
#ifdef FROM_RES
|
||||
hFound = FindResource(m_hInstance, "init_prefs", RT_RCDATA);
|
||||
hRes = LoadResource(m_hInstance, hFound);
|
||||
lpBuff = (char *)LockResource(hRes);
|
||||
ok = MOCHA_EvaluateBuffer(m_mochaContext,m_mochaPrefObject,
|
||||
lpBuff, strlen(lpBuff), NULL, 0,
|
||||
&result);
|
||||
#else
|
||||
_stat("c:\\dog\\initprefs", &stats);
|
||||
|
||||
fileLength = stats.st_size;
|
||||
fp = fopen("c:\\dog\\initprefs", "r");
|
||||
|
||||
if (fp) {
|
||||
char* readBuf = (char *) malloc(fileLength * sizeof(char));
|
||||
if (readBuf) {
|
||||
fileLength = XP_FileRead(readBuf, fileLength, fp);
|
||||
|
||||
ok = MOCHA_EvaluateBuffer(m_mochaContext,m_mochaPrefObject,
|
||||
readBuf, fileLength, NULL, 0, &result);
|
||||
free(readBuf);
|
||||
XP_FileClose(fp);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
char *EncodeBase64Buffer(char *subject, long size) {
|
||||
return NULL;
|
||||
}
|
||||
char *DecodeBase64Buffer(char *subject) {
|
||||
return NULL;
|
||||
}
|
||||
@@ -1,101 +0,0 @@
|
||||
; -*- Mode: Fundamental; tab-width: 4; indent-tabs-mode: nil -*-
|
||||
;
|
||||
; The contents of this file are subject to the Netscape Public
|
||||
; License Version 1.1 (the "License"); you may not use this file
|
||||
; except in compliance with the License. You may obtain a copy of
|
||||
; the License at http://www.mozilla.org/NPL/
|
||||
;
|
||||
; Software distributed under the License is distributed on an "AS
|
||||
; IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
; implied. See the License for the specific language governing
|
||||
; rights and limitations under the License.
|
||||
;
|
||||
; The Original Code is mozilla.org code.
|
||||
;
|
||||
; The Initial Developer of the Original Code is Netscape
|
||||
; Communications Corporation. Portions created by Netscape are
|
||||
; Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
; Rights Reserved.
|
||||
;
|
||||
; Contributor(s):
|
||||
|
||||
|
||||
|
||||
LIBRARY XPPREF32 INITINSTANCE TERMINSTANCE
|
||||
PROTMODE
|
||||
|
||||
DESCRIPTION 'Netscape 32-bit XP Preferences Library'
|
||||
|
||||
CODE LOADONCALL MOVEABLE DISCARDABLE
|
||||
DATA PRELOAD MOVEABLE SINGLE NONSHARED
|
||||
|
||||
|
||||
EXPORTS
|
||||
PREF_ReadUserJSFile
|
||||
PREF_Init
|
||||
PREF_GetConfigContext
|
||||
PREF_GetGlobalConfigObject
|
||||
PREF_GetPrefConfigObject
|
||||
PREF_Cleanup
|
||||
PREF_ReadLockFile
|
||||
PREF_EvaluateJSBuffer
|
||||
PREF_QuietEvaluateJSBuffer
|
||||
PREF_QuietEvaluateJSBufferWithGlobalScope
|
||||
PREF_SetCharPref
|
||||
PREF_SetIntPref
|
||||
PREF_SetBoolPref
|
||||
PREF_SetBinaryPref
|
||||
PREF_SetColorPref
|
||||
PREF_SetColorPrefDWord
|
||||
PREF_SetRectPref
|
||||
PREF_SetDefaultCharPref
|
||||
PREF_SetDefaultIntPref
|
||||
PREF_SetDefaultBoolPref
|
||||
PREF_SetDefaultBinaryPref
|
||||
PREF_SetDefaultColorPref
|
||||
PREF_SetDefaultRectPref
|
||||
PREF_SavePrefFile
|
||||
PREF_SavePrefFileAs
|
||||
PREF_GetCharPref
|
||||
PREF_CopyCharPref
|
||||
PREF_GetIntPref
|
||||
PREF_GetBoolPref
|
||||
PREF_GetColorPref
|
||||
PREF_GetColorPrefDWord
|
||||
PREF_GetRectPref
|
||||
PREF_GetBinaryPref
|
||||
PREF_CopyBinaryPref
|
||||
PREF_CopyPathPref
|
||||
PREF_SetPathPref
|
||||
PREF_GetDefaultCharPref
|
||||
PREF_CopyDefaultCharPref
|
||||
PREF_GetDefaultIntPref
|
||||
PREF_GetDefaultBoolPref
|
||||
PREF_GetDefaultBinaryPref
|
||||
PREF_GetDefaultColorPref
|
||||
PREF_GetDefaultColorPrefDWord
|
||||
PREF_GetDefaultRectPref
|
||||
PREF_DeleteBranch
|
||||
PREF_GetConfigString
|
||||
PREF_CopyConfigString
|
||||
PREF_CopyIndexConfigString
|
||||
PREF_GetConfigInt
|
||||
PREF_GetConfigBool
|
||||
PREF_PrefIsLocked
|
||||
PREF_AboutConfig
|
||||
PREF_CreateChildList
|
||||
PREF_NextChild
|
||||
PREF_RegisterCallback
|
||||
PREF_UnregisterCallback
|
||||
PREF_IsAutoAdminEnabled
|
||||
;new GA added routines DSR070297
|
||||
PREF_EvaluateConfigScript
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,111 +0,0 @@
|
||||
; -*- Mode: Fundamental; tab-width: 4; indent-tabs-mode: nil -*-
|
||||
;
|
||||
; The contents of this file are subject to the Netscape Public
|
||||
; License Version 1.1 (the "License"); you may not use this file
|
||||
; except in compliance with the License. You may obtain a copy of
|
||||
; the License at http://www.mozilla.org/NPL/
|
||||
;
|
||||
; Software distributed under the License is distributed on an "AS
|
||||
; IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
; implied. See the License for the specific language governing
|
||||
; rights and limitations under the License.
|
||||
;
|
||||
; The Original Code is mozilla.org code.
|
||||
;
|
||||
; The Initial Developer of the Original Code is Netscape
|
||||
; Communications Corporation. Portions created by Netscape are
|
||||
; Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
; Rights Reserved.
|
||||
;
|
||||
; Contributor(s):
|
||||
|
||||
|
||||
|
||||
LIBRARY XPPREF16.DLL
|
||||
EXETYPE WINDOWS
|
||||
PROTMODE
|
||||
|
||||
DESCRIPTION 'Netscape 16-bit XP Preferences Library'
|
||||
|
||||
CODE LOADONCALL MOVEABLE DISCARDABLE
|
||||
DATA PRELOAD MOVEABLE SINGLE
|
||||
|
||||
HEAPSIZE 8192
|
||||
|
||||
IMPORTS
|
||||
_sscanf = nspr3.33
|
||||
|
||||
EXPORTS
|
||||
_PREF_Init = _PREF_Init
|
||||
_PREF_ReadLockFile
|
||||
_PREF_EvaluateJSBuffer
|
||||
_PREF_QuietEvaluateJSBuffer
|
||||
_PREF_SetCharPref
|
||||
_PREF_SetIntPref
|
||||
_PREF_SetBoolPref
|
||||
_PREF_SetBinaryPref
|
||||
_PREF_SetColorPref
|
||||
_PREF_SetColorPrefDWord
|
||||
_PREF_SetRectPref
|
||||
_PREF_SetDefaultCharPref
|
||||
_PREF_SetDefaultIntPref
|
||||
_PREF_SetDefaultBoolPref
|
||||
_PREF_SetDefaultBinaryPref
|
||||
_PREF_SetDefaultColorPref
|
||||
_PREF_SetDefaultRectPref
|
||||
_PREF_SavePrefFile
|
||||
_PREF_SavePrefFileAs
|
||||
_PREF_GetCharPref
|
||||
_PREF_CopyCharPref
|
||||
_PREF_GetIntPref
|
||||
_PREF_GetBoolPref
|
||||
_PREF_GetColorPref
|
||||
_PREF_GetColorPrefDWord
|
||||
_PREF_GetRectPref
|
||||
_PREF_GetBinaryPref
|
||||
_PREF_CopyBinaryPref
|
||||
_PREF_GetDefaultCharPref
|
||||
_PREF_CopyDefaultCharPref
|
||||
_PREF_GetDefaultIntPref
|
||||
_PREF_GetDefaultBoolPref
|
||||
_PREF_GetDefaultBinaryPref
|
||||
_PREF_GetDefaultColorPref
|
||||
_PREF_GetDefaultColorPrefDWord
|
||||
_PREF_GetDefaultRectPref
|
||||
_PREF_DeleteBranch
|
||||
_PREF_GetConfigString
|
||||
_PREF_CopyConfigString
|
||||
_PREF_CopyIndexConfigString
|
||||
_PREF_GetConfigInt
|
||||
_PREF_PrefIsLocked
|
||||
_PREF_AboutConfig
|
||||
_PREF_CreateChildList
|
||||
_PREF_NextChild
|
||||
_PREF_RegisterCallback
|
||||
_PREF_GetGlobalConfigObject
|
||||
_PREF_GetConfigContext
|
||||
_PREF_Cleanup
|
||||
_PREF_GetConfigBool
|
||||
_PREF_ReadUserJSFile
|
||||
_PREF_QuietEvaluateJSBufferWithGlobalScope
|
||||
_PREF_GetPrefConfigObject
|
||||
_PREF_GetPrefType
|
||||
_pref_savePref
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Version stamp for this .DLL
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#include <ver.h>
|
||||
|
||||
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
|
||||
FILEVERSION 4 // major, minor, release (alpha 1), build #
|
||||
|
||||
PRODUCTVERSION 4
|
||||
|
||||
FILEFLAGSMASK 0
|
||||
|
||||
FILEFLAGS 0 // final version
|
||||
|
||||
FILEOS VOS_DOS_WINDOWS16
|
||||
|
||||
FILETYPE VFT_DLL
|
||||
|
||||
FILESUBTYPE 0 // not used
|
||||
|
||||
BEGIN
|
||||
|
||||
BLOCK "StringFileInfo"
|
||||
|
||||
BEGIN
|
||||
|
||||
BLOCK "040904E4" // Lang=US English, CharSet=Windows Multilingual
|
||||
|
||||
BEGIN
|
||||
|
||||
VALUE "CompanyName", "Netscape Communications Corporation\0"
|
||||
|
||||
VALUE "FileDescription", "Netscape 16-bit JavaScript Module\0"
|
||||
|
||||
VALUE "FileVersion", "4.0\0"
|
||||
|
||||
VALUE "InternalName", "JS1640\0"
|
||||
|
||||
VALUE "LegalCopyright", "Copyright Netscape Communications. 1994-96\0"
|
||||
|
||||
VALUE "LegalTrademarks", "Netscape, Mozilla\0"
|
||||
|
||||
VALUE "OriginalFilename","JS1640.DLL\0"
|
||||
|
||||
VALUE "ProductName", "NETSCAPE\0"
|
||||
|
||||
VALUE "ProductVersion", "4.0\0"
|
||||
|
||||
END
|
||||
|
||||
END
|
||||
|
||||
END
|
||||
|
||||
@@ -1,102 +0,0 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
|
||||
|
||||
//Microsoft Developer Studio generated resource script.
|
||||
//
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "winver.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 4,0,0,0
|
||||
PRODUCTVERSION 4,0,0,0
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x10004L
|
||||
FILETYPE 0x2L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904e4"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "Netscape Communications Corporation\0"
|
||||
VALUE "FileDescription", "Netscape 32-bit JavaScript Module\0"
|
||||
VALUE "FileVersion", "4.0\0"
|
||||
VALUE "InternalName", "JS3240\0"
|
||||
VALUE "LegalCopyright", "Copyright Netscape Communications. 1994-96\0"
|
||||
VALUE "LegalTrademarks", "Netscape, Mozilla\0"
|
||||
VALUE "OriginalFilename", "js3240.dll\0"
|
||||
VALUE "ProductName", "NETSCAPE\0"
|
||||
VALUE "ProductVersion", "4.0\0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1252
|
||||
END
|
||||
END
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"#include ""winver.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@@ -1,111 +0,0 @@
|
||||
; -*- Mode: Fundamental; tab-width: 4; indent-tabs-mode: nil -*-
|
||||
;
|
||||
; The contents of this file are subject to the Netscape Public
|
||||
; License Version 1.1 (the "License"); you may not use this file
|
||||
; except in compliance with the License. You may obtain a copy of
|
||||
; the License at http://www.mozilla.org/NPL/
|
||||
;
|
||||
; Software distributed under the License is distributed on an "AS
|
||||
; IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
; implied. See the License for the specific language governing
|
||||
; rights and limitations under the License.
|
||||
;
|
||||
; The Original Code is mozilla.org code.
|
||||
;
|
||||
; The Initial Developer of the Original Code is Netscape
|
||||
; Communications Corporation. Portions created by Netscape are
|
||||
; Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
; Rights Reserved.
|
||||
;
|
||||
; Contributor(s):
|
||||
|
||||
|
||||
|
||||
LIBRARY XPPREF16.DLL
|
||||
EXETYPE WINDOWS
|
||||
PROTMODE
|
||||
|
||||
DESCRIPTION 'Netscape 16-bit XP Preferences Library'
|
||||
|
||||
CODE LOADONCALL MOVEABLE DISCARDABLE
|
||||
DATA PRELOAD MOVEABLE SINGLE
|
||||
|
||||
HEAPSIZE 8192
|
||||
|
||||
IMPORTS
|
||||
_sscanf = nspr3.33
|
||||
|
||||
EXPORTS
|
||||
_PREF_Init = _PREF_Init
|
||||
_PREF_ReadLockFile
|
||||
_PREF_EvaluateJSBuffer
|
||||
_PREF_QuietEvaluateJSBuffer
|
||||
_PREF_SetCharPref
|
||||
_PREF_SetIntPref
|
||||
_PREF_SetBoolPref
|
||||
_PREF_SetBinaryPref
|
||||
_PREF_SetColorPref
|
||||
_PREF_SetColorPrefDWord
|
||||
_PREF_SetRectPref
|
||||
_PREF_SetDefaultCharPref
|
||||
_PREF_SetDefaultIntPref
|
||||
_PREF_SetDefaultBoolPref
|
||||
_PREF_SetDefaultBinaryPref
|
||||
_PREF_SetDefaultColorPref
|
||||
_PREF_SetDefaultRectPref
|
||||
_PREF_SavePrefFile
|
||||
_PREF_SavePrefFileAs
|
||||
_PREF_GetCharPref
|
||||
_PREF_CopyCharPref
|
||||
_PREF_GetIntPref
|
||||
_PREF_GetBoolPref
|
||||
_PREF_GetColorPref
|
||||
_PREF_GetColorPrefDWord
|
||||
_PREF_GetRectPref
|
||||
_PREF_GetBinaryPref
|
||||
_PREF_CopyBinaryPref
|
||||
_PREF_GetDefaultCharPref
|
||||
_PREF_CopyDefaultCharPref
|
||||
_PREF_GetDefaultIntPref
|
||||
_PREF_GetDefaultBoolPref
|
||||
_PREF_GetDefaultBinaryPref
|
||||
_PREF_GetDefaultColorPref
|
||||
_PREF_GetDefaultColorPrefDWord
|
||||
_PREF_GetDefaultRectPref
|
||||
_PREF_DeleteBranch
|
||||
_PREF_GetConfigString
|
||||
_PREF_CopyConfigString
|
||||
_PREF_CopyIndexConfigString
|
||||
_PREF_GetConfigInt
|
||||
_PREF_PrefIsLocked
|
||||
_PREF_AboutConfig
|
||||
_PREF_CreateChildList
|
||||
_PREF_NextChild
|
||||
_PREF_RegisterCallback
|
||||
_PREF_GetGlobalConfigObject
|
||||
_PREF_GetConfigContext
|
||||
_PREF_Cleanup
|
||||
_PREF_GetConfigBool
|
||||
_PREF_ReadUserJSFile
|
||||
_PREF_QuietEvaluateJSBufferWithGlobalScope
|
||||
_PREF_GetPrefConfigObject
|
||||
_PREF_GetPrefType
|
||||
_pref_savePref
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user