Display protected source code

Hi All,
We are facing the problem of source code protection because our ABAPer deceived us and left the company.
Now we can not modify /  display any program developed by him. We are logging with his id also giving same message as displayed below.
The source  is protected. See explanation in long text
Message no. ED800
Diagnosis
The desired source text is protected by SAP because changing it could cause system errors.
I hope we can view this code in any diffrent way as I forgot password which I used to protect it.
Please suggest your expoert solutions.
Regards,
Ramesh.

>
ramesh_basis wrote:
> Hi Volker,
>
> Can you please describe your solution in details as I never heard about HEX-Editor.
>
> Please tell me step by step.
>
> Regards,
> Ramesh.
You'll have to get your basis team involved to see the transport files. Which won't be a problem if the suggestions that it's actually you who've committed the crime are false, will it?

Similar Messages

  • How to display the source code for this friggin' file.

    Below is a rather lengthy bit of code that provides the behavior and attributes of a web server for OpenCyc. I need to know if I can enter some java to have the HTML source code displayed in a separate text file whenever this class returns some resulting webpage. If you have any ideas it will be greatly appreciated.
    -"Will code for foo."
    package org.opencyc.webserver;
    * Class WebServer is simple multithreaded HTTP server
    * with CGI limited to a Cyc connection on default port 3600.
    * <p>
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import java.util.jar.*;
    import java.text.*;
    import org.opencyc.util.*;
    public class WebServer extends Thread {
         * Singleton WebServer instance.
        public static WebServer current;
         * Default HTTP port.
        protected static int DEFAULT_PORT = 80;
         * Default Cyc base port.
        protected static int DEFAULT_CYC_PORT = 3600;
         * Default directory to serve files from on non-Windows OS.
        protected static String DEFAULT_DIR = "/";
         * Default directory to serve files from on Windows.
        //protected static String DEFAULT_WIN_DIR = "C:\\";
        protected static String DEFAULT_WIN_DIR = "k:\\opencyc\\run\\httpd\\htdocs";
         * File cache capacity.
        protected static final int CACHE_CAPACITY = 100;
         * File cache to improve file serving performance.
        protected static Hashtable fileCache = new Hashtable(CACHE_CAPACITY);
         * Number of files served from this web server.
        protected static long nbrFilesServed = 0;
         * Number of files served from this web server that were found in the cache.
        protected static long nbrCacheHits = 0;
         * Server socket for accepting connections.
        protected ServerSocket server;
         * Directories to serve files from.
        protected ArrayList dirs;
         * Map from String (jar root) to JarFile[] (jar class path).
        protected HashMap map;
         * Webserver HTTP port.
        protected int port;
         * Cyc HTML host.
        protected String cycHost = "localhost";
         * Cyc HTML port.
        protected int cycPort;
         * Expand jar tress.
        protected boolean trees;
         * Requests flag.
        protected boolean traceRequests;
         * Constructs a WebServer object.
         * @param port the port to use
         * @param directories the directory to serve files from
         * @param trees true if files within jar files should be served up
         * @param traceRequests true if client's request text should be logged.
         * @exception IOException if the listening socket cannot be opened, or problem opening jar files.
        public WebServer() throws IOException {
            getProperties();
            server = new ServerSocket(port);
            processDirectories();
         * Class Task processes a single HTTP request.
        protected class Task extends Thread {
             * Socket for the incoming request.
            protected Socket sock;
             * Client socket to the Cyc KB HTML server.
            protected Socket cycHtmlSocket;
             * Output tcp stream.
            protected DataOutputStream out;
             * Contains the file request path for a not-found error message.
            protected String notFoundPath;
             * Contains the first line of a request message.
            protected String methodLine;
             * Contains the body of a POST method.
            protected String bodyLine;
             * Constructs a Task object.
             * @param sock the socket assigned for this request.
            public Task(Socket sock) {
                this.sock = sock;
             * Processes the HTTP request.
            public void run() {
                if (traceRequests)
                    Log.current.println("connection accepted from " + sock.getInetAddress());
                notFoundPath = "";
                try {
                    out = new DataOutputStream(sock.getOutputStream());
                    try {
                        getBytes();
                    catch (Exception e) {
                        Log.current.println("file not found: " + notFoundPath);
                        try {
                            out.writeBytes("HTTP/1.1 404 Not Found\r\n");
                            out.writeBytes("Server: Cyc WebServer\r\n");
                            out.writeBytes("Connection: close\r\n");
                            out.writeBytes("Content-Type: text/html\r\n\r\n");
                            out.writeBytes("<HTML><HEAD>\n");
                            out.writeBytes("<TITLE>404 Not Found</TITLE>\n");
                            out.writeBytes("</HEAD><BODY>\n");
                            out.writeBytes("<H1>404 - Not Found</H1>\n");
                            out.writeBytes("</BODY></HTML>");
                            out.flush();
                        catch (SocketException se) {
                catch (Exception e) {
                    Log.current.printStackTrace(e);
                finally {
                    try {
                        sock.close();
                    catch (IOException e) {
             * Reads the HTTP request and obtains the response.
             * @exception IOException when HTTP request has an invalid format.
            private void getBytes() throws IOException {
                // Below logic is complex because web browsers do not close the
                // socket after sending the request, so must parse message to find
                // the end.
                BufferedReader in = new BufferedReader(new InputStreamReader(sock.getInputStream()));
                ArrayList inBytes = new ArrayList(200);
                int ch = 0;
                boolean postMethod;
                methodLine = in.readLine();
                //if (traceRequests)
                //    Log.current.println("methodLine=" + methodLine);
                bodyLine = "";
                if (methodLine.startsWith("POST /"))
                    postMethod = true;
                else
                    postMethod = false;
                //if (traceRequests)
                //    Log.current.println("postMethod=" + postMethod);
                int ch1 = -1;
                int ch2 = -1;
                int ch3 = -1;
                int ch4 = -1;
                // Read the HTTP request headers.
                while (true) {
                    ch = in.read();
                    inBytes.add(new Integer(ch));
                    ch1 = ch2;
                    ch2 = ch3;
                    ch3 = ch4;
                    ch4 = ch;
                    if (ch1 == '\r' && ch2 == '\n' && ch3 == '\r' && ch4 == '\n')
                        break;
                    if ((! postMethod) &&
                        (! in.ready()) &&
                        ch1 == -1 &&
                        ch2 == -1 &&
                        ch3 == '\r' &&
                        ch4 == '\n') {
                        inBytes.add(new Integer('\r'));
                        inBytes.add(new Integer('\n'));
                        break;
                byte[] byteArray = new byte[inBytes.size()];
                for (int i = 0; i < inBytes.size(); i++) {
                    Integer ich = (Integer) inBytes.get(i);
                    byteArray[i] = ich.byteValue();
                String headers = new String(byteArray);
                if (postMethod) {
                    String lcHeaders = headers.toLowerCase();
                    int i = lcHeaders.indexOf("content-length: ");
                    String contentLength = lcHeaders.substring(i + 16);
                    int j = contentLength.indexOf("\r\n");
                    contentLength = contentLength.substring(0, j);
                    int bodyLen = (new Integer(contentLength)).intValue();
                    for (int k = 0; k < bodyLen; k++) {
                        bodyLine = bodyLine + (new Character((char) in.read())).toString();
                String line = methodLine + "\r\n" + headers + bodyLine;
                if (traceRequests)
                    Log.current.println(line);
                if (postMethod)
                    processHttpPost();
                else
                    if (line.startsWith("GET /"))
                        processHttpGet(line.substring(4));
                    else {
                        Log.current.println("Invalid request = " + line);
                        throw new IOException();
             * Processes an HTTP GET method.
             * @param httpGetPath the path of the file to get.
             * @exception IOException if the file is not found.
            private void processHttpGet(String httpGetPath) throws IOException {
                int i = httpGetPath.indexOf(' ');
                if (i > 0)
                    httpGetPath = httpGetPath.substring(0, i);
                Log.current.println(methodLine + " from " + sock.getInetAddress().getHostName());
                i = httpGetPath.indexOf("cg?");
                if (i > 0) {
                    cycHtmlRequest(httpGetPath.substring(i + 3));
                    return;
                notFoundPath = httpGetPath;
                i = httpGetPath.indexOf('/');
                if (i < 0 || map == null) {
                    if (map == null || httpGetPath.endsWith(".jar")) {
                        for (int j = 0; j < dirs.size(); j++) {
                            String dir = (String) dirs.get(j);
                            String nativePath = dir + httpGetPath;
                            nativePath = nativePath.replace('/', File.separatorChar);
                            if (fileCache.containsKey(nativePath)) {
                                writeDataBytes((byte[]) fileCache.get(nativePath));
                                Log.current.println("...cached");
                                nbrCacheHits++;
                                nbrFilesServed++;
                                return;
                            try {
                                File f = new File(nativePath);
                                byte[] fileBytes = getBytes(new FileInputStream(f), f.length());
                                writeDataBytes(fileBytes);
                                if (fileCache.size() >= CACHE_CAPACITY)
                                    fileCache.clear();
                                fileCache.put(nativePath, fileBytes);
                                Log.current.println("...from " + nativePath);
                                nbrFilesServed++;
                                return;
                            catch (IOException e) {
                    throw new IOException();
                String jar = httpGetPath.substring(0, i);
                httpGetPath = httpGetPath.substring(i + 1);
                JarFile[] jfs = (JarFile[]) map.get(jar);
                if (jfs == null)
                    throw new IOException();
                for (i = 0; i < jfs.length; i++) {
                    JarEntry je = jfs.getJarEntry(httpGetPath);
    if (je == null)
    continue;
    writeDataBytes(getBytes(jfs[i].getInputStream(je), je.getSize()));
    nbrFilesServed++;
    return;
    throw new IOException();
    * Processes an HTTP POST method.
    * @exception IOException if the file is not found.
    private void processHttpPost() throws IOException {
    Log.current.println("POST " + bodyLine + " from " + sock.getInetAddress().getHostName());
    cycHtmlRequest(bodyLine);
    * Reads the specified number of bytes and always close the stream.
    * @param in the file to be read for subsequent downloading.
    * @param length the number of bytes to read from the file.
    * @return An array of bytes from the file.
    * @exception IOException if an error occurs when processing the file.
    private byte[] getBytes(InputStream in, long length) throws IOException {
    DataInputStream din = new DataInputStream(in);
    byte[] bytes = new byte[ (int) length];
    try {
    din.readFully(bytes);
    finally {
    din.close();
    return bytes;
    * Sends the HTML request to Cyc.
    * @param cycPath the portion of the URL which is given to the Cyc HTML server.
    private void cycHtmlRequest(String cycPath) {
    String request = sock.getInetAddress().getHostName() + "&" + cycPath + "#";
    System.out.println("request=" + request);
    ArrayList bytes = new ArrayList(10000);
    try {
    cycHtmlSocket = new Socket(cycHost, cycPort);
    System.out.println("cycHost=" + cycHost + " cycPort=" + cycPort);
    BufferedReader cycIn = new BufferedReader(new InputStreamReader(cycHtmlSocket.getInputStream()));
    PrintWriter cycOut = new PrintWriter(cycHtmlSocket.getOutputStream(), true);
    cycOut.println(request);
    cycOut.flush();
    int ch = 0;
    while (ch >= 0) {
    ch = cycIn.read();
    bytes.add(new Integer(ch));
    catch (Exception e) {
    Log.current.printStackTrace(e);
    byte[] byteArray = new byte[bytes.size()];
    for (int i = 0; i < bytes.size() - 1; i++) {
    Integer ich = (Integer) bytes.get(i);
    byteArray[i] = ich.byteValue();
    try {
    writeTextBytes(byteArray);
    catch (Exception e) {
    Log.current.println(e.getMessage());
    * Responds to the HTTP client with data content from the requested URL.
    * @param bytes the array of bytes from the URL.
    * @exception IOException if there is an error writing to the HTTP client.
    public void writeDataBytes(byte[] bytes) throws IOException {
    out.writeBytes("HTTP/1.1 200 OK\r\n");
    out.writeBytes("Server: Cyc WebServer\r\n");
    out.writeBytes("Connection: close\r\n");
    out.writeBytes("Content-Length: " + bytes.length + "\r\n");
    String prefix = (new String(bytes)).toLowerCase();
    if (prefix.indexOf("<html>") > -1)
    out.writeBytes("Content-Type: text/html\r\n\r\n");
    else
    out.writeBytes("Content-Type: application/java\r\n\r\n");
    out.write(bytes);
    out.flush();
    * Respond to the HTTP client with text content from the requested URL.
    * @param bytes the array of bytes from the URL.
    * @exception IOException if there is an error writing to the HTTP client.
    public void writeTextBytes(byte[] bytes) throws IOException {
    out.writeBytes("HTTP/1.1 200 OK\r\n");
    out.writeBytes("Server: Cyc WebServer\r\n");
    out.writeBytes("Connection: close\r\n");
    out.writeBytes("Content-Length: " + bytes.length + "\r\n");
    out.writeBytes("Content-Type: text/html\r\n\r\n");
    out.write(bytes);
    out.flush();
    * Gets properties governing the web server's behavior.
    private void getProperties() {
    port = DEFAULT_PORT;
    String portProperty = System.getProperty("org.opencyc.webserver.port", "");
    if (! portProperty.equalsIgnoreCase(""))
    port = (new Integer(portProperty)).intValue();
    Log.current.println("Listening on port " + port);
    cycPort = DEFAULT_CYC_PORT;
    String cycPortProperty = System.getProperty("org.opencyc.webserver.cycPort", "");
    if (! cycPortProperty.equalsIgnoreCase(""))
    cycPort = (new Integer(cycPortProperty)).intValue();
    Log.current.println("Cyc connections directed to port " + cycPort);
    String dirsProperty = System.getProperty("org.opencyc.webserver.dirs", "");
    dirs = new ArrayList(3);
    StringTokenizer st = new StringTokenizer(dirsProperty, ";", false);
    while (st.hasMoreTokens()) {
    String dir = st.nextToken();
    dirs.add(dir);
    trees = false;
    String treesProperty = System.getProperty("org.opencyc.webserver.trees", "");
    if (! treesProperty.equalsIgnoreCase(""))
    trees = true;
    traceRequests = false;
    String traceRequestsProperty = System.getProperty("org.opencyc.webserver.traceRequests", "");
    if (! traceRequestsProperty.equalsIgnoreCase("")) {
    traceRequests = true;
    Log.current.println("tracing requests");
    * Adds transitive Class-Path jars to jfs.
    * @param jar the jar file
    * @param jfs the list of jar files to serve.
    * @param dir the jar file directory.
    * @exception IOException if an I/O error has occurred with the jar file.
    private void addJar(String jar, ArrayList jfs, String dir) throws IOException {
    Log.current.println("Serving jar files from: " + dir + jar);
    JarFile jf = new JarFile(dir + jar);
    jfs.add(jf);
    Manifest man = jf.getManifest();
    if (man == null)
    return;
    Attributes attrs = man.getMainAttributes();
    if (attrs == null)
    return;
    String val = attrs.getValue(Attributes.Name.CLASS_PATH);
    if (val == null)
    return;
    dir = dir + jar.substring(0, jar.lastIndexOf(File.separatorChar) + 1);
    StringTokenizer st = new StringTokenizer(val);
    while (st.hasMoreTokens()) {
    addJar(st.nextToken().replace('/', File.separatorChar), jfs, dir);
    * Administrative accessor method that obtains list of directories from which files are served.
    public ArrayList getDirs() {
    return dirs;
    * Administrative method that updates the list of directories from which files are served.
    public synchronized void setDirs(ArrayList dirs) throws IOException {
    this.dirs = dirs;
    fileCache.clear();
    processDirectories();
    * Administrative accessor method that obtains number of files served.
    * @return The number of files served.
    public long getNbrFilesServed() {
    return nbrFilesServed;
    * Administrative accessor method that obtains number of files served from cache.
    * @return The number of files served from the cache.
    public long getNbrCacheHits() {
    return nbrCacheHits;
    * Administrative method that clears the file cache.
    public synchronized void clearFileCache() {
    Log.current.println("Clearing file cache");
    fileCache.clear();
    nbrFilesServed = 0;
    nbrCacheHits = 0;
    * Processes the directories from which files are served, expanding jar trees if
    * directed.
    * @exception IOException if problem occurs while processing the jar files.
    private void processDirectories() throws IOException {
    if (dirs.size() == 0)
    if (File.separatorChar == '\\')
    dirs.add(DEFAULT_WIN_DIR);
    else
    dirs.add(DEFAULT_DIR);
    Iterator directories = dirs.iterator();
    while (directories.hasNext())
    Log.current.println("Serving from " + directories.next());
    if (trees) {
    map = new HashMap();
    for (int j = 0; j < dirs.size(); j++) {
    String dir = (String) dirs.get(j);
    String[] files = new File(dir).list();
    for (int i = 0; i < files.length; i++) {
    String jar = files[i];
    if (!jar.endsWith(".jar"))
    continue;
    ArrayList jfs = new ArrayList(1);
    addJar(jar, jfs, dir);
    map.put(jar.substring(0, jar.length() - 4), jfs.toArray(new JarFile[jfs.size()]));
    * Provides the command line interface for creating an HTTP server.
    * The properties are:
    * <pre>
    * org.opencyc.webserver.port=<HTTP listening port>
    * </pre>
    * which defaults to 80.
    * <pre>
    * org.opencyc.webserver.cycPort=<Cyc connection port>
    * </pre>
    * which defaults to 3600.
    * <pre>
    * org.opencyc.webserver.dirs=<path>;<path> ... ;<path>
    * </pre>
    * with the argument enclosed in quotes if any path contains an
    * embedded space.
    * The default directory on Windows is C:
    * and the default on other systems is / the default
    * can be overridden with this property. By default, all files
    * under this directory (including all subdirectories) are served
    * up via HTTP. If the pathname of a file is <var>path</var> relative
    * to the top-level directory, then the file can be downloaded using
    * the URL
    * <pre>
    * http://<var>host</var>:<var>port</var>/<var>path</var>
    * </pre>
    * Caching of file contents is performed.
    * <pre>
    * org.opencyc.util.log=all
    * </pre>
    * If the all value is given, then all attempts to download files
    * are output.
    * <pre>
    * org.opencyc.webserver.traceRequests
    * </pre>
    * If this property has any value, then the client HTTP requests are
    * output.<p>
    * <pre>
    * org.opencyc.webserver.trees
    * </pre>
    * This property can be used to serve up individual files stored
    * within jar files in addition to the files that are served up by
    * default. If the property has any value, the server finds all jar files
    * in the top-level directory (not in subdirectories). For each
    * jar file, if the name of the jar file is <var>name</var>.jar, then any
    * individual file named <var>file</var> within that jar file (or within
    * the jar or zip files referenced transitively in the Class-Path manifest
    * attribute, can be downloaded using a URL of the form:
    * <pre>
    * http://<var>host</var>:<var>port</var>/<var>name</var>/<var>file</var>
    * </pre>
    * When this property has any value, an open file descriptor and cached
    * information are held for each jar file, for the life of the process.
    * @param args an unused array of command line arguments.
    public static void main(String[] args) {
    Log.makeLog();
    System.out.println("OpenCyc Web Server");
    try {
    // Launch thread to accept HTTP connections.
    current = new WebServer();
    current.start();
    catch (IOException e) {
    e.printStackTrace();
    * Just keep looping, spawning a new thread for each incoming request.
    public void run() {
    try {
    while (true) {
    // Launch thread to process one HTTP request.
    new Task(server.accept()).start();
    catch (IOException e) {
    e.printStackTrace();

    JLundan,
    I want to thank you for responding to the thread I started on the forum at java.sun.com. Your solution to my problem of needing to print the code of the html pages that the file I included generates was just what I was looking for. However, I have some further questions to ask, if you don't mind. To clarify my task I should say that your rephrasing of the problem is accurate: "You wan't to display the contents of the HTML file that the web server produces in response of client's request?"
    Yes, this is what I need to do, but also it needs to display the source code of that html file that the server produces in response to the client's request. Also, in this case, I am the client requesting that the server return some html file, and I'm not sure where the server is. But the webserver.java file that I shared on the forum is on my local machine. I was wondering if I could modify this webserver.java file at my home so that any html file the server returns to me would automatically display the source code. This is a school project of mine and I am stuck on this one thing here.
    Further, where would I put the "foo.html" file so it can be written to?
    FileOuputStream fos = new FileOutputStream("foo.html");
    fos.write(bytes);
    fos.close();
    Thanks so much for your help. I look forward to your response, at your convenience.
    Regards

  • Newsletter displays as source code when I send it

    I've read articles that said to send an HTML newsletter you
    make a webpage and copy it into the body of an email. I created an
    HTML page, copied the source code and pasted it into the body of an
    email and sent it to myself but when I received it it still just
    looked like source code. I have my email program (Entourage)
    formatted to HTML (both sending and receving). I have all images
    hard coded to a server online and all css in the body. How do I get
    it to display as a web page and not source code? Also tried this
    with Mac mail with the same result. What am I doing wrong?
    Liz

    Try these, too -
    http://www.anandgraves.com/html-email-guide#unnecessary_htmltags
    http://www.reachcustomersonline.com/content/2004/11/11/09.27.00/
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Tarvardian" <[email protected]> wrote in
    message
    news:[email protected]...
    > Thanks for catching that, Murray.
    >
    >
    http://www.slipstick.com/mail1/html.htm
    >
    >
    > "Murray *ACE*" <[email protected]>
    wrote in message
    > news:[email protected]...
    >> Article? 8)
    >>
    >> --
    >> Murray --- ICQ 71997575
    >> Adobe Community Expert
    >> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >> ==================
    >>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >> ==================
    >>
    >>
    >> "Tarvardian" <[email protected]>
    wrote in message
    >> news:[email protected]...
    >>> Hi Liz --
    >>>
    >>> I'm not familiar with Entourage, but maybe this
    tutorial on how to send
    >>> an HTML email with Outlook will give you some
    ideas. I've had good luck
    >>> with Method 1.
    >>>
    >>> Sorry I couldn't have been more help.
    >>> John
    >>>
    >>> "elhz" <[email protected]>
    wrote in message
    >>> news:[email protected]...
    >>>> I've read articles that said to send an HTML
    newsletter you make a
    >>>> webpage and
    >>>> copy it into the body of an email. I created
    an HTML page, copied the
    >>>> source
    >>>> code and pasted it into the body of an email
    and sent it to myself but
    >>>> when I
    >>>> received it it still just looked like source
    code. I have my email
    >>>> program
    >>>> (Entourage) formatted to HTML (both sending
    and receving). I have all
    >>>> images
    >>>> hard coded to a server online and all css in
    the body. How do I get it
    >>>> to
    >>>> display as a web page and not source code?
    Also tried this with Mac
    >>>> mail with
    >>>> the same result. What am I doing wrong?
    >>>>
    >>>> Liz
    >>>>
    >>>
    >>>
    >>
    >>
    >
    >

  • Protecting Source Code

    I am developing and application that I am planning on
    "leasing" out to busnesses but to keep my source code safe I will
    only allow the application to be run under a hosting account that I
    control so that the source is not subject to being stolen. Other
    then cfencrypt (which can be decrypted) is there a way for me to
    distribute my application to companies that want to outright
    purchase it and allow them to install it on a different server yet
    protecting the source code? Can I compile it into .jar files and us
    it that way? And if so how do I do that?
    Thanks,

    You can deploy as a J2EE application, see:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/deploying_4.html#117456
    Also for some tips from the trenches:
    http://www.adobe.com/devnet/coldfusion/articles/ear.html
    One caveat, the people you sell the application to _must_
    have a valid Enterprise copy of CF or it will not deploy.
    hehe, never done the above tho!

  • Easy way to protect source code from hackers?

    I did a search and couldn't come up with an answer.
    I added a password script for clients on my site, but I would like to be able to (inexpensively!) protect my code from hackers so they can't view passwords and usernames.
    Any one know of a good place to check?
    Thanks,
    Jim

    The other methods are like putting a No Trespassing
    sign on your door, hardly secure.
    I AGREE. That is why I said it was a "fast fix" and I also said, "However if someone disabled javascript, they could still view your source."
    Metaphorically
    speaking if you want a vault with a moat get MySQL if
    you want to keep your kids inside the playroom by
    means of a plastic barrier then go with
    Javascript/.htpasswd methods mentioned by other
    inexperienced users that are only looking for a
    "real fast fix".
    .htpasswd is hardly the equivalent of the javascript method.
    I am not looking for any fix, thanks. And I was just making suggestions, same as you.
    I am not an inexperienced iWeb user. I am inexperienced with MySQL and PHP. Lucky for me, this is the iWeb forum.
    If you do not think your photos are highly classified
    information (or something) then you might want to
    re-evaluate your professional priorities.
    They are probably copyrighted, they are personal, maybe they aren't for the public eye, but they are not exactly confidential. The OP said he wanted to protect the passwords in the source code. I offered two ways to do this.
    I'm sure
    you do care about the security of your photos online
    that's why iWebFAQ is defending your position on the
    security issue since it seems like it is not that big
    of a deal for some novice users that are simply
    looking for kudos.
    There you go, talking in third person again...
    I am not looking for kudos. In fact, I challenge you, Jasper, to find a thread where I am asking for thanks or points or stars or $5 donations or whatever. Go for it. You won't find one.
    Remember if you are Publishing to .mac you can set up
    your own Password Protection in iWeb as Old Toad
    first mentioned. This method is much more secure
    than the Javascript method later mentioned in an
    attempt to join this discussion.
    If you need any more help setting up MySQL feel free
    to contact iWebFAQ.
    And for just a $5 suggested donation, you can find out all about how hackers operate.

  • How to protect source code

    hai,
    can u pls tell how to secure the java source code in the client place.is there any convesion method to secure the source code.

    Pre-judging by the way the OP communicates here, it's probably a safe bet that his code is already cryptic enough - it's probably a mess that would be hard to follow.

  • How to display source code of a webpage in Safari 7.0?

    Hello. I'm unable to find how we used to once enable developing tools in Safari Preferences or simply CMD + ALT + A to display the source code of a webpage. Now I've no clue how to display source code of a webpage in Safari 7.0 on Mac OS X Mavericks. Help.

    Hi gss2,
    Make sure you are not under the Apple icon but under Safari>Preferences>Advanced. All the way at the bottom check the box that says: "Show Develop menu in menu bar."
    Now go back to the page you want to get the source code for, right click on it and choose Inspect Element. Hope this helps.
    Cheers,
    LURDS LLC

  • Safari Displays Source Code by Default

    I've set file:///Users/MyName/Sites/1/index.php as my home page on all my browsers. It works fine in Firefox and Opera, but in Safari it displays the source code. Can someone tell me what's going on and how to fix it?
    Thanks.

    Here's the head section and beginning body section. (I just discovered I have
    two instances of <style type='text/css'> though I wouldn't think that would nix the page display.):
    <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">
    <head>
    <title></title>
    <style type="text/css">
    body { margin: 0; padding: 5px 15px 25px; background: #fff; font-family: Arial, Verdana, Helvetica, sans-serif;
    font-size: 90%; font-weight: normal; color: #000 }
    p { text-align: left; text-indent: 0px }
    /* HYPERLINKS */
    a:link { color: #0000ff; text-decoration: none }
    a:visited { color: #0000ff; text-decoration: none }
    a:hover { color: #ff0000; background-color: #ffff00; text-decoration: none }
    div { padding: 5px; }
    div#toplinks { border-bottom: 1px solid #000; }
    div#geobop { background: #cff; }
    div#rep5 { background: #fcc; }
    div#media { background: #ff9; }
    div#ref { background: #eee; }
    div#computers { background: #cff; }
    div#allies { border-bottom: 1px solid #000; }
    .hilite { padding: 0px 5px 0px; background: #ff0; }
    .yellow { padding: 0px 5px 0px; background: #ff0; }
    .aqua { padding: 0px 5px 0px; background: #0ff; }
    .lime { padding: 0px 5px 0px; background: #0f0; }
    .green { padding: 0px 5px 0px; background: #cfc; }
    .red { padding: 0px 5px 0px; background: #ffc; }
    .blue { padding: 0px 5px 0px; background: #cff; }
    .gray { padding: 0px 5px 0px; background: #eee; }
    </style>
    <style type='text/css'>
    body {
    margin:0; padding:0;
    color:#000; background:#fff;
    font-family:verdana,arial,sans-serif;
    h3, h4 { margin: 0px; padding: 0px; }
    #page {
    margin:0% 10%;
    background:#fff;
    #header {
    margin:10px; padding:5px;
    border:1px dotted #333;
    #title { padding: 0px;
    .menu {
    background:#ff9;
    #content {
    margin:1em; padding:1em;
    border:1px dotted #333;
    #footer {
    margin:1em; padding:1em;
    text-align:center;
    border:1px dotted #333;
    .app {
    margin:1em; padding:.2em;
    background:#eee;
    border:1px dotted #333;
    .app p {
    margin:0; padding:0;
    .fltL3 {
    float:left;
    width:28%;
    padding:1em;
    .fltL4 {
    float:left;
    width:20%;
    padding:.5em;
    .fltL5 {
    float:left;
    width:15%;
    padding:.5em;
    .clrBoth {
    clear:both;
    </style>
    <script type='text/javascript'>
    // if js is disabled we want app elements to be visible
    // so they are visible by default in the CSS
    document.write("<" + "style type='text/css'>.app{display:none;}<" + "/" + "style>");
    window.onload = function()
    dsds_onload();
    function dsds_onload()
    var ln=1, // lnk number
    lo=1; // lnk object
    for (; lo; ++ln) {
    lo = document.getElementById('lnk' + ln);
    if (lo) {
    lo.appId = 'app' + ln;
    lo.onclick = dsds_onclick;
    window.currentAppId = null; // global
    // assumes app elements have display:none initially
    function dsds_onclick()
    var e;
    if (currentAppId && currentAppId != this.appId) {
    e = document.getElementById(currentAppId);
    e.style.display = 'none';
    e = document.getElementById(this.appId);
    if (e.style.display == 'block') {
    e.style.display = 'none';
    currentAppId = null;
    else {
    e.style.display = 'block';
    currentAppId = this.appId;
    return false;
    </script>
    </head>
    <body>
    Basics
    <!-- Menu 1 -->
    Popular |
    Biz |
    Search/Rank |
    MyComputer |
    Personal |
    Medical |
    Jobs |
    Calendar |
    Notes |
    Misc
    <!-- end Menu -->

  • How to avoid "Cannot display source code at this location"?

    This debugger message really annoys me. It seems to me that
    sometimes when my program fails the debugger returns nice friendly
    messages telling me exactly what line numebr an object is
    undefined. This is great. But half the time I get message of this
    nature.
    at main_fla::MainTimeline/ot()
    at main_fla::MainTimeline/buttMouseEvent()
    Cannot display source code at this location.
    Why does the debugger refuse to show the line number of the
    code sometimes?
    Is there acoding practice that one should use to avoid these
    unhelpful debug messages?
    It is very annoying when you have a 200 line function that
    tells you that somehting is undefined SOMEWHERE in the function
    without giving you a line number. Granted at least AS3 does
    actually warn you....(unlike AS2) but I am constantly plagues by
    these "Cannot display source code at this location" messages.
    An anyone offer any explanation to why these messages dont
    display line numebrs or how to code in a way that avoids them?
    thanks

    JLundan,
    I want to thank you for responding to the thread I started on the forum at java.sun.com. Your solution to my problem of needing to print the code of the html pages that the file I included generates was just what I was looking for. However, I have some further questions to ask, if you don't mind. To clarify my task I should say that your rephrasing of the problem is accurate: "You wan't to display the contents of the HTML file that the web server produces in response of client's request?"
    Yes, this is what I need to do, but also it needs to display the source code of that html file that the server produces in response to the client's request. Also, in this case, I am the client requesting that the server return some html file, and I'm not sure where the server is. But the webserver.java file that I shared on the forum is on my local machine. I was wondering if I could modify this webserver.java file at my home so that any html file the server returns to me would automatically display the source code. This is a school project of mine and I am stuck on this one thing here.
    Further, where would I put the "foo.html" file so it can be written to?
    FileOuputStream fos = new FileOutputStream("foo.html");
    fos.write(bytes);
    fos.close();
    Thanks so much for your help. I look forward to your response, at your convenience.
    Regards

  • About unprotect a report program's source code

    Hi all,
    I have protect the report program using a report program. In this process if i change/display a report program it doesn't displays its source code but it execute that program.The whole source code is Stored in an internal table.but the real problem is that when i open that program's source code it protected and doesn't appears.
    I doing this by using '*@#@@[SAP]'. This is provided by SAP to protect a report program.
    Now my query is ' there is any thing to unprotected that program' ?
    Suggest.
    Thanks
    Sanket sethi.

    > <i>This is provided by SAP to protect a report program.</i>
    That is an <u>incorrect</u> statement. That "feature" might be removed without any prior notice since it's causing more harm than it provides benefit.

  • Source code Verification in different systems  ?

    Hi gurus
    I am having a custom user exit. I have to check whether the source code is same in both the Sand box and Configuration box?
    How to compare between the systems ?
    Please guide me. Urgent
    Thanks
    Meenakshi . N
    Edited by: Meenakshi.Nakshatrula on May 1, 2008 8:20 PM

    Meenakshi,
    Go to SE38 in any one of the two systems you want to compare against each other.
    Display your source code.
    Go to Utilities --> Versions --> Version management
    Now you should see the various version of your source code. Choose the version you want to compare - I suppoer you might want to choose the current / active version.
    Press the button in the top icon bar that says REMOTE comparison
    This will pop-up a box. Put in the logical ID of your Target sys OR put in the RFC destination ID for your target system, and press the little green tick mark.
    This brings you back to a similar looking screen as earlier.
    Again press the button that says REMOTE comparison - that's it.
    SAP will compare the chosen source code versions in the two systems, and give you a comparison in a split-screen format, color-coded format.
    Remember to assign points if found useful.
    Regards
    Gulshan

  • [svn] 2891: Add the web-tier compiler for J2EE to the Flex open source code base.

    Revision: 2891
    Author: [email protected]
    Date: 2008-08-19 07:35:22 -0700 (Tue, 19 Aug 2008)
    Log Message:
    Add the web-tier compiler for J2EE to the Flex open source code base.
    Added Paths:
    flex/sdk/trunk/modules/webtier/
    flex/sdk/trunk/modules/webtier/bootstrap/
    flex/sdk/trunk/modules/webtier/bootstrap/build.xml
    flex/sdk/trunk/modules/webtier/bootstrap/java/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/META-INF/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/META-INF/taglib.tld
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/default.properties
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/bootstrap/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/bootstrap/BootstrapBodyTag.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/bootstrap/BootstrapClassLoader.jav a
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/bootstrap/BootstrapFilter.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/bootstrap/BootstrapServlet.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/bootstrap/BootstrapTag.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/bootstrap/TagGenerator.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/jsp/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/jsp/FlashVarTa g.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/jsp/MxmlTag.ja va
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/wrappers/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/wrappers/ATGFi lterConfig.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/wrappers/ATGHt tpServletRequest.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/wrappers/ATGSe rvletConfig.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/wrappers/ATGSe rvletContext.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/server/j2ee/wrappers/J2EEW rapper.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/util/
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/util/FileUtils.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/flex/webtier/util/J2EEUtil.java
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/hitachi.properties
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/interstage.properties
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/jrun.properties
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/tomcat.properties
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/weblogic.properties
    flex/sdk/trunk/modules/webtier/bootstrap/java/src/websphere.properties
    flex/sdk/trunk/modules/webtier/build.properties
    flex/sdk/trunk/modules/webtier/build.xml
    flex/sdk/trunk/modules/webtier/coldfusion/
    flex/sdk/trunk/modules/webtier/coldfusion/build.xml
    flex/sdk/trunk/modules/webtier/coldfusion/lib/
    flex/sdk/trunk/modules/webtier/coldfusion/lib/cfmx_bootstrap.jar
    flex/sdk/trunk/modules/webtier/coldfusion/src/
    flex/sdk/trunk/modules/webtier/coldfusion/src/java/
    flex/sdk/trunk/modules/webtier/coldfusion/src/java/coldfusion/
    flex/sdk/trunk/modules/webtier/coldfusion/src/java/coldfusion/bootstrap/
    flex/sdk/trunk/modules/webtier/coldfusion/src/java/coldfusion/bootstrap/BootstrapBodyTag. java
    flex/sdk/trunk/modules/webtier/coldfusion/src/java/coldfusion/bootstrap/BootstrapTag.java

    JLundan,
    I want to thank you for responding to the thread I started on the forum at java.sun.com. Your solution to my problem of needing to print the code of the html pages that the file I included generates was just what I was looking for. However, I have some further questions to ask, if you don't mind. To clarify my task I should say that your rephrasing of the problem is accurate: "You wan't to display the contents of the HTML file that the web server produces in response of client's request?"
    Yes, this is what I need to do, but also it needs to display the source code of that html file that the server produces in response to the client's request. Also, in this case, I am the client requesting that the server return some html file, and I'm not sure where the server is. But the webserver.java file that I shared on the forum is on my local machine. I was wondering if I could modify this webserver.java file at my home so that any html file the server returns to me would automatically display the source code. This is a school project of mine and I am stuck on this one thing here.
    Further, where would I put the "foo.html" file so it can be written to?
    FileOuputStream fos = new FileOutputStream("foo.html");
    fos.write(bytes);
    fos.close();
    Thanks so much for your help. I look forward to your response, at your convenience.
    Regards

  • Setting password to view source code.,,

    How can I set password to restrict users from accessing or viewing my code..

    Hi joseph,
    Welcome to SDN.
    1. SEUED001
       We can make use of this enhancement,
       and the FM EXIT_SAPLS38E_001
       (inside this enhancement)
    2.  Inside this u can
        give error message so that
       se38 does not proceed further
       to even display the source code !
    3. One can use like this :
       eg.
    Data
    DATA :  terminal LIKE usr41-terminal.
    DATA : BEGIN OF itab OCCURS 0,
           myprog LIKE sy-repid,
           END OF itab.
    My prog
    itab-myprog = 'ZAM_TEMP174'.
    APPEND itab.
    itab-myprog = 'ZAM_TEMP173'.
    APPEND itab.
      Check
    CALL FUNCTION 'TERMINAL_ID_GET'
    EXPORTING
      USERNAME                   = SY-UNAME
    IMPORTING
       terminal                   = terminal
    EXCEPTIONS
      MULTIPLE_TERMINAL_ID       = 1
      NO_TERMINAL_FOUND          = 2
      OTHERS                     = 3
    Detect
    LOOP AT itab.
      IF program = itab-myprog.
        IF terminal CS '10.101.8.101' AND operation = 'EDIT'.
         MESSAGE e999(yhr) WITH 'Not Allowed'.
        ENDIF.
      ENDIF.
    ENDLOOP.
    regards,
    amit m.

  • HTML source code is rendering instead of web page

    Hi All,
    I have firefox 3.6.13. For some of the pages it is displaying HTML source code as it is without rendering or applying CSS and scripts to display properly designed web page.
    can u tell me if there is setting which causing this issue? but that way, i should have faced for all the pages.
    which all factors can cause this?

    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.com/kb/Server+not+found
    *https://support.mozilla.com/kb/Firewalls

  • Viewing stored proc source code

    Ok, now how do I view the source of a stored proc in SQL Developer?
    I have tried:
    select source from user_sources
    select source from all_sources
    select * from dba_sources
    ALL are coming back with table or view does not exist.
    If I try this:
    select procedure_name from dba_procedures;
    I get all the procedures but how can I view the source code for any one of them?
    Sorry, again, I have been away from oracle for over 4 years. I am trying to re-acquaint myself with oracle again starting with the most basic stuff.
    Thanks in advance

    hi,
    Sorry, I don't understand your question.
    I can see the package or procedure name but it doesn't show the source code.
    I know that in sql* plus, if you say:
    select source from all_source, it displays the source code but I want to see if that is possible in sql developer environment.

Maybe you are looking for