dtnmnw3697 2011-02-05 07:43
浏览 43

使用PHP导出SQL Server

I'm re-doing a website for a client who currently is using Umbraco.

The previous developer upped and disappeared and left us with pretty much nothing, I need to get to the templates to redo it, but it seems the templates are stored in the database.

The server has PHP on it as well as .NET to run Umbraco.

I don't know .NET and am quite shady with PHP ... I have the entire source code for the Umbraco install which means I have database name, userid, password and host.

Is there a script in PHP someone can help me with which can dump the entire contents of the SQL Server database so I can search through it and get the templates out.

Ive tried using RazorSQL to connect to the SQL Server database, but it won't let me connect for some reason.

Any help would be great.

Cheers,

  • 写回答

1条回答 默认 最新

  • dougou7008 2011-02-05 07:59
    关注

    Do you know what version of Umbraco it is?

    The templates for umbraco are stored on the disk in the MasterPages folder in v4 and later.

    If you need access to the backoffice in Umbraco and have the db username and password (found in the web.config file) you could reset the password in the db (table = umbracoUser) as long as membership provider is set to not hash the passwords. This can be checked by looking in the web.config file at the lines

    <add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />
    

    if the passwordFormat="Hashed" remove that attribute. This will enable you to set the password in the db to be clear text.

    once this is done you should be able to login to the back office of umbraco by going to

    http://[yoursitedomain]/umbraco/umbraco.aspx
    

    Hope this helps you out :) Otherwise the friendly folks over at http://our.umbraco.org should be able to shed light on any other issues you might have.

    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog